1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <Window
- 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:local="clr-namespace:ApiTest"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Title="MainWindow"
- Width="800"
- Height="450"
- mc:Ignorable="d"
- x:Class="ApiTest.MainWindow">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="IP" />
- <TextBox
- x:Name="uxIp"
- Width="120"
- VerticalAlignment="Center"
- Text="192.168.1.10" />
- <TextBlock VerticalAlignment="Center" Text="account" />
- <TextBox
- x:Name="uxAccount"
- Width="120"
- VerticalAlignment="Center"
- Text="" />
- <TextBlock VerticalAlignment="Center" Text="pass" />
- <TextBox
- x:Name="uxPass"
- Width="120"
- VerticalAlignment="Center"
- Text="" />
- </StackPanel>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="150" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="0">
- <Button Margin="5" Click="GetVersion_Click">
- <TextBlock Text="GetVersion" />
- </Button>
- <Button Margin="5" Click="GetSystem_Click">
- <TextBlock Text="GetSystem" />
- </Button>
- <Button Margin="5" Click="GetCharging_Click">
- <TextBlock Text="GetCharging" />
- </Button>
- <Button Margin="5" Click="GetNetwrok_Click">
- <TextBlock Text="GetNetwrok" />
- </Button>
- <Button Margin="5" Click="GetBackend_Click">
- <TextBlock Text="GetBackend" />
- </Button>
- <Button Margin="5" Click="EnableAuth_Click">
- <TextBlock Text="Enable Auth" />
- </Button>
- <Button Margin="5" Click="DisableAuth_Click">
- <TextBlock Text="Disable Auth" />
- </Button>
- <Button Margin="5" Click="SetSystem_Click">
- <TextBlock Text="SetSystem" />
- </Button>
- <Button Margin="5" Click="GetTelcom_Click">
- <TextBlock Text="GetTelcom" />
- </Button>
- <Button Margin="5" Click="UploadFirmware_Click">
- <TextBlock Text="UploadFirmware" />
- </Button>
- </StackPanel>
- <TextBox
- x:Name="uxResult"
- Grid.Column="1"
- TextWrapping="Wrap" />
- </Grid>
- </Grid>
- </Window>
|