<!--
/*
** Job Arranger Manager
** Copyright (C) 2012 FitechForce, Inc. All Rights Reserved.
** Copyright (C) 2013 Daiwa Institute of Research Business Innovation Ltd. All Rights Reserved.
**
**
** Licensed to the Apache Software Foundation (ASF) under one or more 
** contributor license agreements. See the NOTICE file distributed with
** this work for additional information regarding copyright ownership. 
** The ASF licenses this file to you under the Apache License, Version 2.0
** (the "License"); you may not use this file except in compliance with 
** the License. You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
**
**/
-->
    <Window x:Class="jp.co.ftf.jobcontroller.JobController.Form.JobEdit.EnvSetting"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:src="clr-namespace:jp.co.ftf.jobcontroller.JobController" 
        WindowStartupLocation="CenterScreen" ResizeMode="NoResize" FontSize="11" FontFamily="Meiryo" MouseUp="Window_MouseUp"
        Title="{x:Static src:Properties.Resources.env_icon_screen_name}" Height="390" Width="390"  Closing="Window_Closed" xmlns:my="clr-namespace:jp.co.ftf.jobcontroller.JobController.Properties">
    <Grid Background="#FFEEECE1" Name="GridSetting">
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="200" />
            <RowDefinition Height="47" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Label Grid.Row="0" Content="{x:Static src:Properties.Resources.job_id_label_text}" Height="28" HorizontalAlignment="Left" Margin="12,3,0,0" 
               VerticalAlignment="Top" VerticalContentAlignment="Center" />
        <TextBox Name="txtJobId" Height="23" Width="286" Margin="80,6,0,0" HorizontalAlignment="Left" 
                 VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="32" />
        <Label Grid.Row="1" Content="{x:Static src:Properties.Resources.job_name_label_text}" Height="28" HorizontalAlignment="Left" Margin="12,3,0,0" 
               VerticalAlignment="Top" VerticalContentAlignment="Center" />
        <TextBox Grid.Row="1" Name="txtJobName" Height="23" Width="286" Margin="80,6,0,0" HorizontalAlignment="Left" 
                 VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="64" />
        <Label Grid.Row="2" Content="{x:Static src:Properties.Resources.jobcon_value_label_text}" Height="23" HorizontalAlignment="Left" Margin="12,0,0,0" 
               VerticalAlignment="Top" />
        <DataGrid Grid.Row="2" Name="dgJobConVariable" Height="178" Width="350" AutoGenerateColumns="False" 
                  HorizontalAlignment="Left" Margin="16,22,0,0" VerticalAlignment="Top" Background="White" 
                  GridLinesVisibility="None" RowHeight="18" CanUserAddRows="False" VerticalScrollBarVisibility="Visible"
                  SelectionMode="Single" RowHeaderWidth="0" IsReadOnly="True" KeyUp="dgJobConVariable_KeyUp" SelectionChanged="dgJobConVariable_SelectionChanged"
                  HorizontalScrollBarVisibility="Auto" GotFocus="DataGrid_GotFocus" KeyboardNavigation.TabNavigation="Once">
            <DataGrid.ColumnHeaderStyle>
                <Style TargetType="DataGridColumnHeader">
                    <Setter Property="Background" Value="White"/>
                    <Setter Property="BorderThickness" Value="1,1,0,1"/>
                    <Setter Property="BorderBrush" Value="Black"/>
                    <Setter Property="FontWeight" Value="Bold"/>
                    <Setter Property="Height" Value="18"/>
                    <Setter Property="Padding" Value="4,0,0,0"/>
                </Style>
            </DataGrid.ColumnHeaderStyle>
            <DataGrid.Columns>
                <DataGridTextColumn Header="{x:Static src:Properties.Resources.value_name_col_head_text}" Binding="{Binding Path=value_name}" Width="Auto" />
                <DataGridTextColumn Header="{x:Static src:Properties.Resources.value_col_head_text}" Binding="{Binding Path=value}" Width="Auto" >
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="{x:Type DataGridCell}">
                            <Setter Property="KeyboardNavigation.IsTabStop" Value="False"></Setter>
                        </Style>
                    </DataGridTextColumn.CellStyle>
                </DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <Label Grid.Row="3" Content="{x:Static src:Properties.Resources.variable_name_label_text}" Height="23" Margin="12,2,234,0" 
               VerticalAlignment="Top" />
        <TextBox Grid.Row="3" Name="txtValueName" Height="23" Width="122" HorizontalAlignment="Left" 
                 Margin="16,22,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="128" />
        <Label Grid.Row="3" Content="{x:Static src:Properties.Resources.value_label_text}" Height="23" HorizontalAlignment="Left" Margin="140,2,0,0" 
               VerticalAlignment="Top" />
        <TextBox Grid.Row="3" Name="txtValue" Height="23" Width="128" HorizontalAlignment="Left" 
                 Margin="140,22,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="4000" />
        <Button Grid.Row="3" Content="{x:Static src:Properties.Resources.del_button_text}" Height="23" HorizontalAlignment="Left" Margin="274,22,0,0" 
                Name="btnDel" VerticalAlignment="Top" Width="45" Click ="btnDel_Click" IsDefault="False"/>
        <Button Grid.Row="3" Content="{x:Static src:Properties.Resources.add_button_text}" Height="23" HorizontalAlignment="Left" Margin="321,22,0,0" 
                Name="btnAdd" VerticalAlignment="Top" Width="45" Click ="btnAdd_Click" IsDefault="False"/>
        <Button Grid.Row="4" Content="{x:Static src:Properties.Resources.regist_button_text}" Height="28" HorizontalAlignment="Left" Margin="194,14,0,0" 
                Name="btnToroku" VerticalAlignment="Top" Width="75" Click="btnToroku_Click" IsDefault="True" />   
        <Button Grid.Row="4" Content="{x:Static src:Properties.Resources.cancel_button_text}" Height="28" HorizontalAlignment="Left" Margin="274,14,0,0" 
                Name="btnCancel" VerticalAlignment="Top" Width="75" Click="btnCancel_Click" IsCancel="True"/>
    </Grid>
</Window>
