<Window x:Class="TestTool.RemoteTriggerAPP.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:TestTool.RemoteTriggerAPP"      
        mc:Ignorable="d"
        Title="下發測試用工具(公司內網) V1.1.33 (20211206)" Height="481" Width="652">
    <Viewbox>
        <Grid Margin="0,2,2,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="109*"/>
                <ColumnDefinition Width="222*"/>
            </Grid.ColumnDefinitions>
            <Label Content="Charge Box Id:" HorizontalAlignment="Left" Height="27" Margin="69,23,0,0" VerticalAlignment="Top" Width="91"/>
            <Label Content="Connector Id:" HorizontalAlignment="Left" Height="27" Margin="118,23,0,0" VerticalAlignment="Top" Width="92" Grid.Column="1"/>
            <TextBox Name="uxChargeBoxIdTb" Text="OCTT_1" HorizontalAlignment="Left" Height="27" Margin="179,23,0,0" VerticalAlignment="Top" Width="148" Grid.ColumnSpan="2" LostFocus="uxChargeBoxIdTb_LostFocus"/>
            <TextBox Name="uxConnectorIdTb" Text="1" HorizontalAlignment="Left" Height="27" Margin="210,23,0,0" VerticalAlignment="Top" Width="35" Grid.Column="1"/>
            <ComboBox Name="uxCmdCb" HorizontalAlignment="Left" Margin="5.333,189,0,0" VerticalAlignment="Top" Width="253" Height="34" SelectionChanged="UxCmdCb_SelectionChanged" Grid.Column="1">
                <ComboBoxItem>WrongAction(破壞模式專用)</ComboBoxItem>
                <ComboBoxItem>ChangeAvailability_Inoperative</ComboBoxItem>
                <ComboBoxItem>ChangeAvailability_Operative</ComboBoxItem>
                <ComboBoxItem>UpdateFirmware(搭配破壞模式，請勿下Publish)</ComboBoxItem>
                <ComboBoxItem>DataTransfer</ComboBoxItem>
                <ComboBoxItem>ChangeConfiguration</ComboBoxItem>
                <ComboBoxItem>ClearCache</ComboBoxItem>
                <ComboBoxItem>GetConfiguration</ComboBoxItem>
                <ComboBoxItem>RemoteStartTransaction</ComboBoxItem>
                <ComboBoxItem>RemoteStartTransaction_ChargingProfile</ComboBoxItem>
                <ComboBoxItem>RemoteStopTransaction</ComboBoxItem>
                <ComboBoxItem>Reset_SoftReset</ComboBoxItem>
                <ComboBoxItem>Reset_HardReset</ComboBoxItem>
                <ComboBoxItem>UnlockConnector</ComboBoxItem>
                <ComboBoxItem>GetLocalListVersion</ComboBoxItem>
                <ComboBoxItem>SendLocalList_Full</ComboBoxItem>
                <ComboBoxItem>SendLocalList_Diff</ComboBoxItem>
                <ComboBoxItem>GetDiagnostics_FTP</ComboBoxItem>
                <ComboBoxItem>GetDiagnostics_HTTP</ComboBoxItem>
                <ComboBoxItem>ReserveNow</ComboBoxItem>
                <ComboBoxItem>CancelReservation</ComboBoxItem>
                <ComboBoxItem>SetChargingProfile</ComboBoxItem>
                <ComboBoxItem>ClearChargingProfile</ComboBoxItem>
                <ComboBoxItem>GetCompositeSchedule</ComboBoxItem>
                <ComboBoxItem>TriggerMessage_BootNotification</ComboBoxItem>
                <ComboBoxItem>TriggerMessage_DiagnosticsStatusNotification</ComboBoxItem>
                <ComboBoxItem>TriggerMessage_FirmwareStatusNotification</ComboBoxItem>
                <ComboBoxItem>TriggerMessage_Heartbeat</ComboBoxItem>
                <ComboBoxItem>TriggerMessage_MeterValues</ComboBoxItem>
                <ComboBoxItem>TriggerMessage_StatusNotification</ComboBoxItem>
            </ComboBox>
            <Label  Content="Remote Trigger Cmd:" HorizontalAlignment="Left" Height="27" Margin="69,191,0,0" VerticalAlignment="Top" Width="137"/>
            <Button Name="uxSubmitBtn" Content="Submit" HorizontalAlignment="Left" Margin="265.333,188,0,0" VerticalAlignment="Top" Width="51" Height="34" Click="UxSubmitBtn_Click" Grid.Column="1"/>
            <TextBox Name="uxMsgTb" HorizontalAlignment="Left" Height="80" Margin="84,346,0,0" VerticalAlignment="Top" Width="471" Grid.ColumnSpan="2"/>
            <Label Content="Msg:" HorizontalAlignment="Left" Height="27" Margin="75,314,0,0" VerticalAlignment="Top" Width="43" RenderTransformOrigin="0.744,3.407"/>
            <Label Content="Id Tag:" HorizontalAlignment="Left" Height="27" Margin="71,74,0,0" VerticalAlignment="Top" Width="47"/>
            <TextBox x:Name="uxIdTagTb" Text="TestTool" HorizontalAlignment="Left" Height="27" Margin="121,74,0,0" VerticalAlignment="Top" Width="63" RenderTransformOrigin="3.714,1"/>
            <Label Content="TransactionId:" HorizontalAlignment="Left" Height="27" Margin="152,74,0,0" VerticalAlignment="Top" Width="100" Grid.Column="1"/>
            <TextBox x:Name="uxTransactionIdTb" Text="0" HorizontalAlignment="Left" Height="27" Margin="245,74,0,0" VerticalAlignment="Top" Width="44" RenderTransformOrigin="3.714,1" Grid.Column="1"/>
            <Label Content="ParentId Tag:" HorizontalAlignment="Left" Height="27" Margin="191,74,0,0" VerticalAlignment="Top" Width="87" Grid.ColumnSpan="2"/>
            <TextBox x:Name="uxParentIdTagTb" Text="TestTool" HorizontalAlignment="Left" Height="27" Margin="75,74,0,0" VerticalAlignment="Top" Width="73" RenderTransformOrigin="3.714,1" Grid.Column="1"/>
            <Label Content="Configuration Key:" HorizontalAlignment="Left" Height="27" Margin="71,119,0,0" VerticalAlignment="Top" Width="120"/>
            <TextBox x:Name="uxConfigKeyTb" Text="ConnectionTimeOut" HorizontalAlignment="Left" Height="27" Margin="196,119,0,0" VerticalAlignment="Top" Width="138" RenderTransformOrigin="3.714,1" Grid.ColumnSpan="2"/>
            <Label Content=" Value:" HorizontalAlignment="Left" Height="27" Margin="124.333,119,0,0" VerticalAlignment="Top" Width="54" Grid.Column="1"/>
            <TextBox x:Name="uxConfigValueTb" Text="30" HorizontalAlignment="Left" Height="27" Margin="180,117,0,0" VerticalAlignment="Top" Width="52" RenderTransformOrigin="3.714,1" Grid.Column="1"/>

            <Label Visibility="Visible"   Content="Upload Firmware:" HorizontalAlignment="Left" Height="27" Margin="69,243,0,0" VerticalAlignment="Top" Width="113"/>
            <TextBox Visibility="Visible" x:Name="uxUploadFileTb" Text="" HorizontalAlignment="Left" Height="27" Margin="182,244,0,0" VerticalAlignment="Top" Width="210" RenderTransformOrigin="3.714,1" Grid.ColumnSpan="2"/>
            <Button Visibility="Visible"  x:Name="uxFileSubmitBtn" Content="..." HorizontalAlignment="Left" Margin="187.333,241,0,0" VerticalAlignment="Top" Width="46" Height="29" Click="uxFileSubmitBtn_Click" Grid.Column="1"/>
            <Button Visibility="Visible"  x:Name="uxUploadBtn" Content="Upload" HorizontalAlignment="Left" Margin="259.333,238,0,0" VerticalAlignment="Top" Width="52" Height="34" Click="uxUploadBtn_Click" Grid.Column="1"/>
            <Label Visibility="Visible"   Content="Publish Version:" HorizontalAlignment="Left" Height="27" Margin="69,292,0,0" VerticalAlignment="Top" Width="113"/>
            <ComboBox Visibility="Visible"  x:Name="uxPublishCb" HorizontalAlignment="Left" Margin="179,292,0,0" VerticalAlignment="Top" Width="213" Height="34" SelectionChanged="uxPublishCb_SelectionChanged" Grid.ColumnSpan="2"/>
            <Button Visibility="Visible"  x:Name="uxRefreshBtn" Content="Refresh" HorizontalAlignment="Left" Margin="192.333,292,0,0" VerticalAlignment="Top" Width="53" Height="34" Click="uxRefreshBtn_Click" Grid.Column="1"/>
            <Button Visibility="Visible"  x:Name="uxPublishBtn" Content="Publish" HorizontalAlignment="Left" Margin="258.333,292,0,0" VerticalAlignment="Top" Width="53" Height="34" Click="uxPublishBtn_Click" Grid.Column="1"/>
            <Label Visibility="Visible"  Content="ReservationId:" HorizontalAlignment="Left" Height="27" Margin="262,23,0,0" VerticalAlignment="Top" Width="100" Grid.Column="1"/>
            <TextBox Visibility="Visible"  x:Name="uxReservationTb" Text="0" HorizontalAlignment="Left" Height="27" Margin="367,23,0,0" VerticalAlignment="Top" Width="44" RenderTransformOrigin="3.714,1" Grid.Column="1"/>
            <Button  Visibility="Visible" x:Name="uxClearPublishBtn" Content="Clear Publish" HorizontalAlignment="Left" Margin="325.333,292,0,0" VerticalAlignment="Top" Width="86" Height="34" Click="uxClearPublishBtn_Click" Grid.Column="1"/>
            <Button Visibility="Visible"  x:Name="uxFTPUploadBtn" Content="Upload(FTP)" HorizontalAlignment="Left" Margin="325.333,238,0,0" VerticalAlignment="Top" Width="86" Height="34" Click="uxFTPUploadBtn_Click" RenderTransformOrigin="2.058,0.529" Grid.Column="1"/>

            <Label Content=" Expiry Time:" HorizontalAlignment="Left" Height="27" Margin="237,119,0,0" VerticalAlignment="Top" Width="80" Grid.Column="1"/>

            <TextBox x:Name="uxExpiryTimeTb"  Margin="325,117,10,283" Text="2020/02/06 12:00" Grid.Column="1"></TextBox>
            <Label Content="LocalListSize:" HorizontalAlignment="Left" Height="27" Margin="294,74,0,0" VerticalAlignment="Top" Width="87" Grid.Column="1"/>
            <TextBox x:Name="uxLocalListSizeTb" Text="0" HorizontalAlignment="Left" Height="27" Margin="381,74,0,0" VerticalAlignment="Top" Width="44" RenderTransformOrigin="3.714,1" Grid.Column="1"/>
            <CheckBox x:Name="uxDestroyCb" Content="破壞模式" HorizontalAlignment="Left" Height="27" Margin="325.333,191,0,0" VerticalAlignment="Top" Width="100" Grid.Column="1" FontSize="18" Foreground="#FFF11010" Checked="uxDestroyCb_Checked" Unchecked="uxDestroyCb_Unchecked"/>
            <Label Content="WrongActionName:" HorizontalAlignment="Left" Height="27" Margin="71,151,0,0" VerticalAlignment="Top" Width="126"/>
            <TextBox x:Name="uxWrongActionNameTb" Text="WrongAction" HorizontalAlignment="Left" Height="27" Margin="196,157,0,0" VerticalAlignment="Top" Width="138" RenderTransformOrigin="3.714,1" Grid.ColumnSpan="2"/>
        </Grid>
    </Viewbox>
</Window>
