<!--
/*
** 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.AgentlessSetting"
        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"
        Title="{x:Static src:Properties.Resources.agentless_icon_screen_name}" Height="558" Width="420" xmlns:my="clr-namespace:jp.co.ftf.jobcontroller.JobController.Properties" FontSize="11">
    <!--  added by YAMA 2014/09/22 設定ダイアログ背景色不備対応 -->
    <!--  Grid Background="#FFEEECE1" Height="515" -->
    <Grid Background="#FFEEECE1">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="202*" />
            <ColumnDefinition Width="14*" />
            <ColumnDefinition Width="182*" />
        </Grid.ColumnDefinitions>
        <!--  added by YAMA 2014/09/22 設定ダイアログ背景色不備対応 -->
        <!--  TabControl Height="453" HorizontalAlignment="Left" Name="tabControl1" VerticalAlignment="Top" Width="410" -->
        <TabControl Height="453" HorizontalAlignment="Left" Name="tabControl1" VerticalAlignment="Top" Background="#FFEEECE1" Grid.ColumnSpan="3"  Width="415">
            <TabItem Header="{x:Static src:Properties.Resources.agentless_basicconfig_label_text}" Name="tabConfig" FontSize="11">
                <!--  added by YAMA 2014/09/22 設定ダイアログ背景色不備対応 -->
                <!--  Grid Background="#FFEEECE1" Width="410" Height="424" Name="GridSetting" -->
                <Grid Background="#FFEEECE1" Name="GridSetting">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />
                        <RowDefinition Height="75" />
                        <RowDefinition Height="75" />
                        <RowDefinition Height="189" />
                        <RowDefinition Height="25*" />
                    </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" FontSize="11" />
                    <TextBox Grid.Row="0" Name="txtJobId" Height="23" Width="305" Margin="81,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="81,6,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="64" />
                    <GroupBox Grid.Row="2" Header="{x:Static src:Properties.Resources.agentless_session_label_text}" Height="79" Width="385" Margin="7,2,0,0" Name="gbSession" VerticalAlignment="Top" HorizontalAlignment="Left" Grid.RowSpan="2">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="32*" />
                                <ColumnDefinition Width="341*" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="28" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <RadioButton GroupName="sessionGroup" Content="{x:Static src:Properties.Resources.agentless_onetime_label_text}"    Name="rbOnetime"    Height="16" HorizontalAlignment="Left" Margin="7,8,0,0"  VerticalAlignment="Top" Checked="rbOnetime_Checked" Grid.ColumnSpan="2" />
                            <RadioButton GroupName="sessionGroup" Content="{x:Static src:Properties.Resources.agentless_connection_label_text}" Name="rbConnect"    Height="16" HorizontalAlignment="Left" Margin="88,8,0,0" VerticalAlignment="Top" Checked="rbConnect_Checked" Grid.Column="1" />
                            <RadioButton GroupName="sessionGroup" Content="{x:Static src:Properties.Resources.agentless_continue_label_text}"   Name="rbContinue"   Height="16" HorizontalAlignment="Left" Margin="178,8,0,0" VerticalAlignment="Top" Checked="rbContinue_Checked" Grid.Column="1" />
                            <RadioButton GroupName="sessionGroup" Content="{x:Static src:Properties.Resources.agentless_disconnect_label_text}" Name="rbDisconnect" Height="16" HorizontalAlignment="Left" Margin="260,8,0,0" VerticalAlignment="Top" Checked="rbDisconnect_Checked" Grid.Column="1" />
                            <Label Content="{x:Static src:Properties.Resources.agentless_sessionid_label_text}" Height="28" HorizontalAlignment="Left" Margin="2,27,0,0" Name="lblSessionId" VerticalAlignment="Top" Grid.RowSpan="2" Grid.ColumnSpan="2" />
                            <TextBox Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="60,0,0,0" Name="txtSessionID" MaxLength="64" Width="280" VerticalAlignment="Top" VerticalContentAlignment="Center" Grid.Column="1" />
                        </Grid>
                    </GroupBox>
                    <GroupBox Grid.Row="3" Header="{x:Static src:Properties.Resources.host_label_text}" Height="79" Width="385" Margin="8,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="280" HorizontalAlignment="Left" Margin="91,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="91,0,0,0" Name="textVariableName" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="280" MaxLength="128"/>
                        </Grid>
                    </GroupBox>
                    <GroupBox Grid.Row="4" Header="{x:Static src:Properties.Resources.agentless_ssh_label_text}" Height="200" Width="385" Margin="7,2,0,0" Name="gbSSH" VerticalAlignment="Top" HorizontalAlignment="Left" Grid.RowSpan="2">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="36*" />
                                <ColumnDefinition Width="14*" />
                                <ColumnDefinition Width="323*" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="28" />
                                <RowDefinition Height="28" />
                                <RowDefinition Height="28" />
                                <RowDefinition Height="28" />
                                <RowDefinition Height="28" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <Label Content="{x:Static src:Properties.Resources.agentless_authentic_label_text}" Height="28" HorizontalAlignment="Left" Margin="0,1,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Grid.ColumnSpan="3" Grid.RowSpan="2" />
                            <ComboBox Name="combAuthentic" Height="23" Width="95" Margin="42,1,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="2" SelectionChanged="combAuthentic_SelectionChanged">
                            </ComboBox>
                            <Label Content="{x:Static src:Properties.Resources.agentless_executemode_label_text}" Height="28" HorizontalAlignment="Left" Margin="148,1,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Grid.RowSpan="2" Grid.Column="2" />
                            <ComboBox Name="combExecutiveMode" Height="23" Width="95" Margin="226,1,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="2" >
                                <!--ComboBox Name="combExecutiveMode" Height="23" Width="95" Margin="226,1,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="2" SelectionChanged="combExecutiveMode_SelectionChanged" -->
                                </ComboBox>
                            <Label Grid.Row="1" Content="{x:Static src:Properties.Resources.user_name_label_text}" Height="28" HorizontalAlignment="Left" Margin="0,1,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Grid.ColumnSpan="3" Grid.RowSpan="2" />
                            <TextBox Grid.Row="1" Name="txtUserName" Height="23" Width="280" Margin="42,1,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="256" Grid.Column="2" />
                            <Label Grid.Row="2" Content="{x:Static src:Properties.Resources.agentless_passwd_label_text}" Height="28" HorizontalAlignment="Left" Margin="0,1,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Grid.ColumnSpan="3" Grid.RowSpan="2" />
                            <!-- PasswordBox Grid.Row="2" Name="txtPassword" Height="23" Width="280" Margin="42,1,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="256" Grid.Column="2" OpacityMask="Black" / -->
                            <TextBox Grid.Row="2" Name="txtPassword" Height="23" Width="280" Margin="42,1,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="256" Grid.Column="2" />
                            <Label Grid.Row="3" Content="{x:Static src:Properties.Resources.agentless_publickey_label_text}" Height="28" HorizontalAlignment="Left" Margin="0,1,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Grid.ColumnSpan="3" Grid.RowSpan="2" />
                            <TextBox Grid.Row="3" Name="txtPublicKey" Height="23" Width="280" Margin="42,1,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="2048" Grid.Column="2" />
                            <Label Grid.Row="4" Content="{x:Static src:Properties.Resources.agentless_privatekey_label_text}" Height="28" HorizontalAlignment="Left" Margin="0,1,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Grid.ColumnSpan="3" Grid.RowSpan="2" />
                            <TextBox Grid.Row="4" Name="txtPrivateKey" Height="23" Width="280" Margin="42,1,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="2048" Grid.Column="2" />
                            <Label Grid.Row="5" Content="{x:Static src:Properties.Resources.agentless_passphrase_label_text}" Height="28" HorizontalAlignment="Left" Margin="0,1,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Grid.ColumnSpan="3" />
                            <!-- PasswordBox Grid.Row="5" Name="txtPassPhrase" Height="23" Width="280" Margin="42,1,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="256" Grid.Column="2" / -->
                            <TextBox Grid.Row="5" Name="txtPassPhrase" Height="23" Width="280" Margin="42,1,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="256" Grid.Column="2" />
                        </Grid>
                    </GroupBox>
                </Grid>
            </TabItem>

            <TabItem Header="{x:Static src:Properties.Resources.agentless_command_label_text}" Name="tabCommand" FontSize="11">
                <!--  added by YAMA 2014/09/22 設定ダイアログ背景色不備対応 -->
                <!--  Grid Background="#FFEEECE1" Width="410" Height="424" Name="GridCommandSetting" -->
                <Grid Background="#FFEEECE1" Name="GridCommandSetting">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="270" />
                        <RowDefinition Height="60" />
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30*" />
                    </Grid.RowDefinitions>
                    <GroupBox Header="{x:Static src:Properties.Resources.exec_label_text}" Height="264" Width="388" Margin="9,2,0,0" Name="gbExcute" VerticalAlignment="Top" HorizontalAlignment="Left">
                        <TextBox Grid.Row="0" Name="txtCmd" Height="235" Width="376" Margin="0,4,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalScrollBarVisibility="Auto" MaxLength="4000" TextWrapping="Wrap" AcceptsReturn="True" Grid.ColumnSpan="2" />
                    </GroupBox>
                    <GroupBox Grid.Row="1" Header="{x:Static src:Properties.Resources.agentless_prompt_label_text}" Height="52" Width="388" Margin="7,2,0,0" Name="gbPrompt" VerticalAlignment="Top" HorizontalAlignment="Left" Grid.RowSpan="2">
                        <TextBox Grid.Row="1" Name="txtPromptString" Height="23" Width="375" Margin="1,4,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" MaxLength="256" />
                    </GroupBox>
                    <Label Grid.Row="2" Content="{x:Static src:Properties.Resources.agentless_charcode_label_text}" Height="28" HorizontalAlignment="Left" Margin="8,3,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" />
                    <ComboBox Grid.Row="2" Name="combCharcode" Height="23" Width="95" Margin="100,3,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" IsEnabled="True" IsEditable="True" >
                    </ComboBox>
                    <Label Grid.Row="2" Content="{x:Static src:Properties.Resources.agentless_linefeedcode_label_text}" Height="28" HorizontalAlignment="Left" Margin="202,3,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Grid.RowSpan="2" />
                    <ComboBox Grid.Row="2" Name="combLinefeedcode" Height="23" Width="57" Margin="332,3,0,0" HorizontalAlignment="Left" VerticalAlignment="Top">
                    </ComboBox>
                    <Label Grid.Row="3" Content="{x:Static src:Properties.Resources.agentless_timeout_label_text}" Height="28" Width="157" HorizontalAlignment="Left" Margin="10,2,0,0" VerticalAlignment="Top" />
                    <TextBox Grid.Row="3" Name="txtTimeOut" Height="23" Width="40" HorizontalAlignment="Left" Margin="155,5,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" MaxLength="5" />
                    <Label Grid.Row="3" Content="{x:Static src:Properties.Resources.stop_code_label_text}" Height="25" Width="113" HorizontalAlignment="Right" Margin="0,5,95,0" VerticalAlignment="Top" />
                    <TextBox Grid.Row="3" Name="txtStopCode" Height="23" HorizontalAlignment="Right" Margin="0,5,16,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="74" MaxLength="32" />
                    <CheckBox Grid.Row="4" Content="{x:Static src:Properties.Resources.force_label_text}" Height="23" Margin="13,5,0,0" Name="cbForce" VerticalAlignment="Top" HorizontalAlignment="Left" Width="128" />
                </Grid>
            </TabItem>
        </TabControl>
        <Button Content="{x:Static src:Properties.Resources.regist_button_text}" Height="28" HorizontalAlignment="Left" Margin="14,481,0,0" Name="btnToroku" VerticalAlignment="Top" Width="75" Click="btnToroku_Click" IsDefault="True" FontSize="11" Grid.Column="2" />
        <Button Content="{x:Static src:Properties.Resources.cancel_button_text}" Height="28" HorizontalAlignment="Left" Margin="95,481,0,0" Name="btnCancel" VerticalAlignment="Top" Width="75" Click="btnCancel_Click" IsCancel="True" FontSize="11" Grid.Column="2" />
    </Grid>
</Window>
