<!--
/*
** Job Arranger Manager
** Copyright (C) 2012 FitechForce, Inc. All Rights Reserved.
** Copyright (C) 2013 Daiwa Institute of Research Business Innovation Ltd. All Rights Reserved.
** Copyright (C) 2021 Daiwa Institute of Research 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.JobManager.ParameterSetting"
        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"
        Title="{x:Static src:Properties.Resources.change_variable_value_screen_name}" Height="347" Width="390" >

    <Grid Background="#FFEEECE1" Height="312">
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="200" />
            <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" />
        <Label Name="lblJobId" Height="23" Width="288" Margin="78,6,0,0" HorizontalAlignment="Left"
                 VerticalAlignment="Top" VerticalContentAlignment="Center"  />
        <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" />
        <Label Grid.Row="1" Name="lblJobName" Height="23" Width="288" Margin="78,6,0,0" HorizontalAlignment="Left"
                 VerticalAlignment="Top" VerticalContentAlignment="Center" />
        <DataGrid Grid.Row="2" Name="dgVariable" Height="180" Width="350" AutoGenerateColumns="False"
                  HorizontalAlignment="Left" Margin="16,10,0,0" VerticalAlignment="Top" Background="White"
                  GridLinesVisibility="None" RowHeight="18" CanUserAddRows="False" VerticalScrollBarVisibility="Visible"
                  SelectionMode="Single" RowHeaderWidth="0" IsReadOnly="False" CellEditEnding="DataGrid_CellEditEnded"
                  HorizontalScrollBarVisibility="Auto" KeyboardNavigation.TabNavigation="Once"
                  CanUserDeleteRows="False" GotFocus="DataGrid_GotFocus" MouseUp ="DataGrid_MouseUp">

            <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" IsReadOnly="True" />
                <DataGridTextColumn Header="{x:Static src:Properties.Resources.value_col_head_text}" Binding="{Binding Path=value}" Width="Auto" IsReadOnly="False">
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="{x:Type DataGridCell}">
                            <Setter Property="KeyboardNavigation.IsTabStop" Value="False"></Setter>
                        </Style>
                    </DataGridTextColumn.CellStyle>
                    <DataGridTextColumn.ElementStyle>
                        <Style TargetType="TextBlock">
                            <Setter Property="TextWrapping" Value="Wrap" />
                        </Style>
                    </DataGridTextColumn.ElementStyle>
                    <DataGridTextColumn.EditingElementStyle>
                        <Style TargetType="TextBox">
                            <Setter Property="TextWrapping" Value="Wrap" />
                            <EventSetter Event="KeyDown" Handler="OnTextBoxKeyDown"/>
                        </Style>
                    </DataGridTextColumn.EditingElementStyle>
                </DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>

        <Button Grid.Row="3" 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="3" 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>
