MainWindow.xaml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <Window
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:local="clr-namespace:ApiTest"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. Title="MainWindow"
  8. Width="800"
  9. Height="450"
  10. mc:Ignorable="d"
  11. x:Class="ApiTest.MainWindow">
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="50" />
  15. <RowDefinition Height="*" />
  16. </Grid.RowDefinitions>
  17. <StackPanel Orientation="Horizontal">
  18. <TextBlock VerticalAlignment="Center" Text="IP" />
  19. <TextBox
  20. x:Name="uxIp"
  21. Width="120"
  22. VerticalAlignment="Center"
  23. Text="192.168.1.10" />
  24. <TextBlock VerticalAlignment="Center" Text="account" />
  25. <TextBox
  26. x:Name="uxAccount"
  27. Width="120"
  28. VerticalAlignment="Center"
  29. Text="" />
  30. <TextBlock VerticalAlignment="Center" Text="pass" />
  31. <TextBox
  32. x:Name="uxPass"
  33. Width="120"
  34. VerticalAlignment="Center"
  35. Text="" />
  36. </StackPanel>
  37. <Grid Grid.Row="1">
  38. <Grid.ColumnDefinitions>
  39. <ColumnDefinition Width="150" />
  40. <ColumnDefinition Width="*" />
  41. </Grid.ColumnDefinitions>
  42. <StackPanel Grid.Column="0">
  43. <Button Margin="5" Click="GetVersion_Click">
  44. <TextBlock Text="GetVersion" />
  45. </Button>
  46. <Button Margin="5" Click="GetSystem_Click">
  47. <TextBlock Text="GetSystem" />
  48. </Button>
  49. <Button Margin="5" Click="GetCharging_Click">
  50. <TextBlock Text="GetCharging" />
  51. </Button>
  52. <Button Margin="5" Click="GetNetwrok_Click">
  53. <TextBlock Text="GetNetwrok" />
  54. </Button>
  55. <Button Margin="5" Click="GetBackend_Click">
  56. <TextBlock Text="GetBackend" />
  57. </Button>
  58. <Button Margin="5" Click="EnableAuth_Click">
  59. <TextBlock Text="Enable Auth" />
  60. </Button>
  61. <Button Margin="5" Click="DisableAuth_Click">
  62. <TextBlock Text="Disable Auth" />
  63. </Button>
  64. <Button Margin="5" Click="SetSystem_Click">
  65. <TextBlock Text="SetSystem" />
  66. </Button>
  67. <Button Margin="5" Click="GetTelcom_Click">
  68. <TextBlock Text="GetTelcom" />
  69. </Button>
  70. <Button Margin="5" Click="UploadFirmware_Click">
  71. <TextBlock Text="UploadFirmware" />
  72. </Button>
  73. </StackPanel>
  74. <TextBox
  75. x:Name="uxResult"
  76. Grid.Column="1"
  77. TextWrapping="Wrap" />
  78. </Grid>
  79. </Grid>
  80. </Window>