EvseConfigPanel.xaml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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. <StackPanel Orientation="Horizontal">
  61. <Label Width="185">IsIdleCheckPass</Label>
  62. <CheckBox
  63. Width="150"
  64. VerticalAlignment="Center"
  65. IsChecked="{Binding IsIdleCheckPass}" />
  66. </StackPanel>
  67. <Rectangle Height="10" />
  68. <GroupBox
  69. x:Name="uxFirstTelcom"
  70. Header="1st 3G/4G"
  71. Visibility="Collapsed">
  72. <Grid>
  73. <Grid.ColumnDefinitions>
  74. <ColumnDefinition Width="180" />
  75. <ColumnDefinition Width="Auto" />
  76. </Grid.ColumnDefinitions>
  77. <Grid.RowDefinitions>
  78. <RowDefinition />
  79. <RowDefinition Height="10" />
  80. <RowDefinition />
  81. <RowDefinition Height="10" />
  82. <RowDefinition />
  83. <RowDefinition Height="10" />
  84. <RowDefinition />
  85. </Grid.RowDefinitions>
  86. <Label Grid.Row="0" Grid.Column="0">ModuleVersion</Label>
  87. <TextBox
  88. Grid.Row="0"
  89. Grid.Column="1"
  90. Width="150"
  91. Text="{Binding FourGenModuleVersion, Mode=TwoWay}" />
  92. <Label Grid.Row="2" Grid.Column="0">IsSimInsert</Label>
  93. <CheckBox
  94. Grid.Row="2"
  95. Grid.Column="1"
  96. VerticalAlignment="Center"
  97. IsChecked="{Binding IsSimInsert, Mode=TwoWay}" />
  98. <Label Grid.Row="4" Grid.Column="0">SIM IMSI</Label>
  99. <TextBox
  100. Grid.Row="4"
  101. Grid.Column="1"
  102. Width="150"
  103. Text="{Binding SimIMSI, Mode=TwoWay}" />
  104. <Label Grid.Row="6" Grid.Column="0">SIM ICCID</Label>
  105. <TextBox
  106. Grid.Row="6"
  107. Grid.Column="1"
  108. Width="150"
  109. Text="{Binding SimICCID, Mode=TwoWay}" />
  110. </Grid>
  111. </GroupBox>
  112. <Rectangle Height="10" />
  113. <GroupBox
  114. x:Name="uxSecondTelcom"
  115. Header="2nd 3G/4G"
  116. Visibility="Collapsed">
  117. <Grid>
  118. <Grid.ColumnDefinitions>
  119. <ColumnDefinition Width="180" />
  120. <ColumnDefinition Width="Auto" />
  121. </Grid.ColumnDefinitions>
  122. <Grid.RowDefinitions>
  123. <RowDefinition />
  124. <RowDefinition Height="10" />
  125. <RowDefinition />
  126. <RowDefinition Height="10" />
  127. <RowDefinition />
  128. <RowDefinition Height="10" />
  129. <RowDefinition />
  130. </Grid.RowDefinitions>
  131. <Label Grid.Row="0" Grid.Column="0">ModuleVersion</Label>
  132. <TextBox
  133. x:Name="uxFirstFourGenModuleVersion"
  134. Grid.Row="0"
  135. Grid.Column="1"
  136. Width="150"
  137. Text="{Binding SubFourGenModuleVersion, Mode=TwoWay}" />
  138. <Label Grid.Row="2" Grid.Column="0">IsSimInsert</Label>
  139. <CheckBox
  140. Grid.Row="2"
  141. Grid.Column="1"
  142. VerticalAlignment="Center"
  143. IsChecked="{Binding IsSubSimInsert, Mode=TwoWay}" />
  144. <Label Grid.Row="4" Grid.Column="0">SIM IMSI</Label>
  145. <TextBox
  146. Grid.Row="4"
  147. Grid.Column="1"
  148. Width="150"
  149. Text="{Binding SubSimIMSI, Mode=TwoWay}" />
  150. <Label Grid.Row="6" Grid.Column="0">SIM ICCID</Label>
  151. <TextBox
  152. Grid.Row="6"
  153. Grid.Column="1"
  154. Width="150"
  155. Text="{Binding SubSimICCID, Mode=TwoWay}" />
  156. </Grid>
  157. </GroupBox>
  158. <StackPanel x:Name="uxPreFlashStackPanel" Orientation="Vertical">
  159. </StackPanel>
  160. <StackPanel x:Name="uxFirmwareStackPanel" Orientation="Vertical">
  161. <Rectangle Height="10" />
  162. <GroupBox Header="Version Information">
  163. <StackPanel Orientation="Vertical">
  164. <Grid Margin="0,5,0,5" HorizontalAlignment="Left">
  165. <Grid.ColumnDefinitions>
  166. <ColumnDefinition Width="150" />
  167. <ColumnDefinition Width="10" />
  168. <ColumnDefinition Width="150" />
  169. <ColumnDefinition Width="10" />
  170. <ColumnDefinition Width="150" />
  171. <ColumnDefinition Width="10" />
  172. <ColumnDefinition Width="80" />
  173. </Grid.ColumnDefinitions>
  174. <ComboBox Grid.Column="0" />
  175. <TextBox Grid.Column="2" />
  176. <TextBox Grid.Column="4" />
  177. <Button Grid.Column="6">
  178. <Label>Delete</Label>
  179. </Button>
  180. </Grid>
  181. </StackPanel>
  182. </GroupBox>
  183. <Rectangle Height="10" />
  184. <GroupBox Header="Version Information Dispenser 1" />
  185. <Rectangle Height="10" />
  186. <GroupBox Header="Version Information Dispenser 2" />
  187. </StackPanel>
  188. <Rectangle Height="10" />
  189. <Button
  190. Width="100"
  191. Height="40"
  192. HorizontalAlignment="Left"
  193. Click="AddDispenser_Click">
  194. <Label VerticalAlignment="Center">Add Dispenser</Label>
  195. </Button>
  196. <Rectangle Height="20" />
  197. </StackPanel>
  198. </StackPanel>
  199. </UserControl>