<!--
/*
** 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.JobEdit.RebootSetting"
        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"
        Title="{x:Static src:Properties.Resources.reboot_icon_screen_name}" FontSize="11" FontFamily="Meiryo"
        WindowStartupLocation="CenterScreen" ResizeMode="NoResize"  Closing="Window_Closed" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="333" d:DesignWidth="410" SizeToContent="WidthAndHeight">
    <Grid Background="#FFEEECE1" Width="394" Height="300" Name="GridSetting">
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="75" />
            <RowDefinition Height="55" />
            <RowDefinition Height="35" />
            <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 Grid.Row="0" Name="txtJobId" Height="23" Width="305" Margin="82,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="305" Margin="82,6,0,0" HorizontalAlignment="Left"
                 VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="64" />
        <GroupBox Grid.Row="2" Header="{x:Static src:Properties.Resources.host_label_text}" Height="79" Width="385" Margin="7,2,0,0" Name="gbHost"
                  VerticalAlignment="Top" HorizontalAlignment="Left" Grid.RowSpan="2">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="28" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <RadioButton Grid.Row="0" GroupName="hostGroup" Content="{x:Static src:Properties.Resources.host_name_label_text}" Name="rbHostName" Height="16"
                             HorizontalAlignment="Left" Margin="6,6,0,0" VerticalAlignment="Top"
                             Checked="rbHostName_Checked"/>
                <ComboBox Name="combHostName" Height="23" Width="270" HorizontalAlignment="Left"
                  Margin="102,1,0,0" VerticalAlignment="Top" >
                </ComboBox>
                <RadioButton Grid.Row="1" Content="{x:Static src:Properties.Resources.value_name_label_text}" GroupName="hostGroup" Height="16" HorizontalAlignment="Left"
                             Margin="6,5,0,0" Name="rbVariableName" VerticalAlignment="Top" Checked="rbVariableName_Checked"/>
                <TextBox Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="102,0,0,0" Name="textVariableName"
                         VerticalAlignment="Top" VerticalContentAlignment="Center" Width="270" MaxLength="128"/>
            </Grid>
        </GroupBox>
        <GroupBox Grid.Row="3" Name="gbHandFlag" Header="{x:Static src:Properties.Resources.process_mode_label_text}" Height="50" Width="300" Margin="15,11,0,0"
                  VerticalAlignment="Top" HorizontalAlignment="Left" Grid.RowSpan="2">
            <Grid Width="290">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="88"/>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition Width="18*" />
                </Grid.ColumnDefinitions>
                <RadioButton GroupName="modeGroup" Content="{x:Static src:Properties.Resources.force_reboot_label_text}" Name="rbForce" Height="16"
                             HorizontalAlignment="Left" Margin="2,7,0,0" VerticalAlignment="Top" Width="86" Grid.ColumnSpan="2" Checked="force_Checked" />
                <RadioButton Grid.Column="1" GroupName="modeGroup" Content="{x:Static src:Properties.Resources.waiting_reboot_label_text}" Name="rbWaitTime" Height="16"
                             HorizontalAlignment="Left" Margin="18,7,0,0" VerticalAlignment="Top" Width="180" Grid.ColumnSpan="2" Checked="wait_Checked"/>
            </Grid>
        </GroupBox>
        <Label Grid.Row="4" Content="{x:Static src:Properties.Resources.wait_time_label_text}" Height="23" HorizontalAlignment="Left" Margin="17,13,0,0"
               VerticalAlignment="Top" VerticalContentAlignment="Center" Grid.RowSpan="2" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="120,13,0,0" Name="txtWaitTime" VerticalAlignment="Top"
                 VerticalContentAlignment="Center" Width="40" Grid.Row="4" MaxLength="4" Grid.RowSpan="2" />

        <Label Grid.Row="4" Content="{x:Static src:Properties.Resources.timeout_label_text}" Height="23" Width="162" HorizontalAlignment="Left" Margin="184,13,0,0"
               VerticalAlignment="Top" VerticalContentAlignment="Center" Grid.RowSpan="2" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="343,13,0,0" Name="txtTimeOut" VerticalAlignment="Top"
                 VerticalContentAlignment="Center" Width="42" Grid.Row="4" MaxLength="5" Grid.RowSpan="2" />

        <Button Grid.Row="5" Content="{x:Static src:Properties.Resources.regist_button_text}" Height="28" HorizontalAlignment="Left" Margin="231,36,0,0"
                Name="btnToroku" VerticalAlignment="Top" Width="75" Click="btnToroku_Click" IsDefault="True"/>
        <Button Grid.Row="5" Content="{x:Static src:Properties.Resources.cancel_button_text}" Height="28" HorizontalAlignment="Right" Margin="0,36,8,0"
                Name="btnCancel" VerticalAlignment="Top" Width="75" Click="btnCancel_Click" IsCancel="True"/>
        <CheckBox Content="{x:Static src:Properties.Resources.force_label_text}" Grid.Row="5" Height="13" Margin="22,15,0,0" Name="cbForce" VerticalAlignment="Top" HorizontalAlignment="Left" Width="138" />
    </Grid>
</Window>
