EvseConfigPanel.xaml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <UserControl
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:converter="clr-namespace:ConfigEditor.Converter"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:evmodel="clr-namespace:InitializerModel;assembly=InitializerModel"
  7. xmlns:local="clr-namespace:ConfigEditor.SubPage.EvseConfig"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. d:DataContext="{d:DesignInstance Type=evmodel:EvseSettingConfigModel}"
  10. d:DesignHeight="450"
  11. d:DesignWidth="800"
  12. mc:Ignorable="d"
  13. x:Class="ConfigEditor.SubPage.EvseConfig.EvseConfigPanel">
  14. <UserControl.Resources>
  15. <converter:IsModelSelectdConverter x:Key="IsModelSelectdConverter" />
  16. </UserControl.Resources>
  17. <StackPanel Orientation="Vertical">
  18. <Rectangle Height="10" />
  19. <StackPanel Orientation="Horizontal">
  20. <Label>Model Name</Label>
  21. <Rectangle Width="10" />
  22. <ComboBox x:Name="uxEvseModelNameList" Width="150">
  23. <ComboBox.ItemTemplate>
  24. <DataTemplate>
  25. <Label Content="{Binding .}" />
  26. </DataTemplate>
  27. </ComboBox.ItemTemplate>
  28. </ComboBox>
  29. <Rectangle Width="10" />
  30. <Button x:Name="uxSaveConfigBtn" Click="uxSaveConfigBtn_Click">
  31. <Label>Save Config</Label>
  32. </Button>
  33. <Rectangle Width="10" />
  34. <Button x:Name="uxNewConfigBtn" Click="uxNewConfigBtn_Click">
  35. <Label>New Model Name</Label>
  36. </Button>
  37. </StackPanel>
  38. <StackPanel Visibility="{Binding ModelName, Converter={StaticResource IsModelSelectdConverter}}">
  39. <Rectangle Height="10" />
  40. <StackPanel Orientation="Horizontal">
  41. <Label Width="185">IP Address</Label>
  42. <TextBox Width="150" Text="{Binding IpAddress, Mode=TwoWay}" />
  43. </StackPanel>
  44. <Rectangle Height="10" />
  45. <StackPanel Orientation="Horizontal">
  46. <Label Width="185">Button Test</Label>
  47. <ComboBox
  48. x:Name="uxButtonTestMode"
  49. Width="150"
  50. SelectedItem="{Binding ButtonTestMode}" />
  51. </StackPanel>
  52. <Rectangle Height="10" />
  53. <StackPanel Orientation="Horizontal">
  54. <Label Width="185">IsDisableAuthRequired</Label>
  55. <CheckBox
  56. Width="150"
  57. VerticalAlignment="Center"
  58. IsChecked="{Binding IsDisableAuthRequired}" />
  59. </StackPanel>
  60. <Rectangle Height="10" />
  61. <GroupBox
  62. x:Name="uxFirstTelcom"
  63. Header="1st 3G/4G"
  64. Visibility="Collapsed">
  65. <Grid>
  66. <Grid.ColumnDefinitions>
  67. <ColumnDefinition Width="180" />
  68. <ColumnDefinition Width="Auto" />
  69. </Grid.ColumnDefinitions>
  70. <Grid.RowDefinitions>
  71. <RowDefinition />
  72. <RowDefinition Height="10" />
  73. <RowDefinition />
  74. <RowDefinition Height="10" />
  75. <RowDefinition />
  76. <RowDefinition Height="10" />
  77. <RowDefinition />
  78. </Grid.RowDefinitions>
  79. <Label Grid.Row="0" Grid.Column="0">ModuleVersion</Label>
  80. <TextBox
  81. Grid.Row="0"
  82. Grid.Column="1"
  83. Width="150"
  84. Text="{Binding FourGenModuleVersion, Mode=TwoWay}" />
  85. <Label Grid.Row="2" Grid.Column="0">IsSimInsert</Label>
  86. <CheckBox
  87. Grid.Row="2"
  88. Grid.Column="1"
  89. VerticalAlignment="Center"
  90. IsChecked="{Binding IsSimInsert, Mode=TwoWay}" />
  91. <Label Grid.Row="4" Grid.Column="0">SIM IMSI</Label>
  92. <TextBox
  93. Grid.Row="4"
  94. Grid.Column="1"
  95. Width="150"
  96. Text="{Binding SimIMSI, Mode=TwoWay}" />
  97. <Label Grid.Row="6" Grid.Column="0">SIM ICCID</Label>
  98. <TextBox
  99. Grid.Row="6"
  100. Grid.Column="1"
  101. Width="150"
  102. Text="{Binding SimICCID, Mode=TwoWay}" />
  103. </Grid>
  104. </GroupBox>
  105. <Rectangle Height="10" />
  106. <GroupBox
  107. x:Name="uxSecondTelcom"
  108. Header="2nd 3G/4G"
  109. Visibility="Collapsed">
  110. <Grid>
  111. <Grid.ColumnDefinitions>
  112. <ColumnDefinition Width="180" />
  113. <ColumnDefinition Width="Auto" />
  114. </Grid.ColumnDefinitions>
  115. <Grid.RowDefinitions>
  116. <RowDefinition />
  117. <RowDefinition Height="10" />
  118. <RowDefinition />
  119. <RowDefinition Height="10" />
  120. <RowDefinition />
  121. <RowDefinition Height="10" />
  122. <RowDefinition />
  123. </Grid.RowDefinitions>
  124. <Label Grid.Row="0" Grid.Column="0">ModuleVersion</Label>
  125. <TextBox
  126. x:Name="uxFirstFourGenModuleVersion"
  127. Grid.Row="0"
  128. Grid.Column="1"
  129. Width="150"
  130. Text="{Binding SubFourGenModuleVersion, Mode=TwoWay}" />
  131. <Label Grid.Row="2" Grid.Column="0">IsSimInsert</Label>
  132. <CheckBox
  133. Grid.Row="2"
  134. Grid.Column="1"
  135. VerticalAlignment="Center"
  136. IsChecked="{Binding IsSubSimInsert, Mode=TwoWay}" />
  137. <Label Grid.Row="4" Grid.Column="0">SIM IMSI</Label>
  138. <TextBox
  139. Grid.Row="4"
  140. Grid.Column="1"
  141. Width="150"
  142. Text="{Binding SubSimIMSI, Mode=TwoWay}" />
  143. <Label Grid.Row="6" Grid.Column="0">SIM ICCID</Label>
  144. <TextBox
  145. Grid.Row="6"
  146. Grid.Column="1"
  147. Width="150"
  148. Text="{Binding SubSimICCID, Mode=TwoWay}" />
  149. </Grid>
  150. </GroupBox>
  151. <StackPanel x:Name="uxFrimwareStackPanel" Orientation="Vertical">
  152. <Rectangle Height="10" />
  153. <GroupBox Header="Version Information">
  154. <StackPanel Orientation="Vertical">
  155. <Grid Margin="0,5,0,5" HorizontalAlignment="Left">
  156. <Grid.ColumnDefinitions>
  157. <ColumnDefinition Width="150" />
  158. <ColumnDefinition Width="10" />
  159. <ColumnDefinition Width="150" />
  160. <ColumnDefinition Width="10" />
  161. <ColumnDefinition Width="150" />
  162. <ColumnDefinition Width="10" />
  163. <ColumnDefinition Width="80" />
  164. </Grid.ColumnDefinitions>
  165. <ComboBox Grid.Column="0" />
  166. <TextBox Grid.Column="2" />
  167. <TextBox Grid.Column="4" />
  168. <Button Grid.Column="6">
  169. <Label>Delete</Label>
  170. </Button>
  171. </Grid>
  172. </StackPanel>
  173. </GroupBox>
  174. <Rectangle Height="10" />
  175. <GroupBox Header="Version Information Dispenser 1" />
  176. <Rectangle Height="10" />
  177. <GroupBox Header="Version Information Dispenser 2" />
  178. </StackPanel>
  179. <Rectangle Height="10" />
  180. <Button
  181. Width="100"
  182. Height="40"
  183. HorizontalAlignment="Left"
  184. Click="AddDispenser_Click">
  185. <Label VerticalAlignment="Center">Add Dispenser</Label>
  186. </Button>
  187. <Rectangle Height="20" />
  188. </StackPanel>
  189. </StackPanel>
  190. </UserControl>