123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <UserControl
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:converter="clr-namespace:ConfigEditor.Converter"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:evmodel="clr-namespace:InitializerModel;assembly=InitializerModel"
- xmlns:local="clr-namespace:ConfigEditor.SubPage.EvseConfig"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- d:DataContext="{d:DesignInstance Type=evmodel:EvseSettingConfigModel}"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d"
- x:Class="ConfigEditor.SubPage.EvseConfig.EvseConfigPanel">
- <UserControl.Resources>
- <converter:IsModelSelectdConverter x:Key="IsModelSelectdConverter" />
- </UserControl.Resources>
- <StackPanel Orientation="Vertical">
- <Rectangle Height="10" />
- <StackPanel Orientation="Horizontal">
- <Label>Model Name</Label>
- <Rectangle Width="10" />
- <ComboBox x:Name="uxEvseModelNameList" Width="150">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <Label Content="{Binding .}" />
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- <Rectangle Width="10" />
- <Button x:Name="uxSaveConfigBtn" Click="uxSaveConfigBtn_Click">
- <Label>Save Config</Label>
- </Button>
- <Rectangle Width="10" />
- <Button x:Name="uxNewConfigBtn" Click="uxNewConfigBtn_Click">
- <Label>New Model Name</Label>
- </Button>
- </StackPanel>
- <StackPanel Visibility="{Binding ModelName, Converter={StaticResource IsModelSelectdConverter}}">
- <Rectangle Height="10" />
- <StackPanel Orientation="Horizontal">
- <Label Width="185">IP Address</Label>
- <TextBox Width="150" Text="{Binding IpAddress, Mode=TwoWay}" />
- </StackPanel>
- <Rectangle Height="10" />
- <StackPanel Orientation="Horizontal">
- <Label Width="185">Button Test</Label>
- <ComboBox
- x:Name="uxButtonTestMode"
- Width="150"
- SelectedItem="{Binding ButtonTestMode}" />
- </StackPanel>
- <Rectangle Height="10" />
- <StackPanel Orientation="Horizontal">
- <Label Width="185">IsDisableAuthRequired</Label>
- <CheckBox
- Width="150"
- VerticalAlignment="Center"
- IsChecked="{Binding IsDisableAuthRequired}" />
- </StackPanel>
- <Rectangle Height="10" />
- <GroupBox
- x:Name="uxFirstTelcom"
- Header="1st 3G/4G"
- Visibility="Collapsed">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="180" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="10" />
- <RowDefinition />
- <RowDefinition Height="10" />
- <RowDefinition />
- <RowDefinition Height="10" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Grid.Column="0">ModuleVersion</Label>
- <TextBox
- Grid.Row="0"
- Grid.Column="1"
- Width="150"
- Text="{Binding FourGenModuleVersion, Mode=TwoWay}" />
- <Label Grid.Row="2" Grid.Column="0">IsSimInsert</Label>
- <CheckBox
- Grid.Row="2"
- Grid.Column="1"
- VerticalAlignment="Center"
- IsChecked="{Binding IsSimInsert, Mode=TwoWay}" />
- <Label Grid.Row="4" Grid.Column="0">SIM IMSI</Label>
- <TextBox
- Grid.Row="4"
- Grid.Column="1"
- Width="150"
- Text="{Binding SimIMSI, Mode=TwoWay}" />
- <Label Grid.Row="6" Grid.Column="0">SIM ICCID</Label>
- <TextBox
- Grid.Row="6"
- Grid.Column="1"
- Width="150"
- Text="{Binding SimICCID, Mode=TwoWay}" />
- </Grid>
- </GroupBox>
- <Rectangle Height="10" />
- <GroupBox
- x:Name="uxSecondTelcom"
- Header="2nd 3G/4G"
- Visibility="Collapsed">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="180" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="10" />
- <RowDefinition />
- <RowDefinition Height="10" />
- <RowDefinition />
- <RowDefinition Height="10" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Grid.Column="0">ModuleVersion</Label>
- <TextBox
- x:Name="uxFirstFourGenModuleVersion"
- Grid.Row="0"
- Grid.Column="1"
- Width="150"
- Text="{Binding SubFourGenModuleVersion, Mode=TwoWay}" />
- <Label Grid.Row="2" Grid.Column="0">IsSimInsert</Label>
- <CheckBox
- Grid.Row="2"
- Grid.Column="1"
- VerticalAlignment="Center"
- IsChecked="{Binding IsSubSimInsert, Mode=TwoWay}" />
- <Label Grid.Row="4" Grid.Column="0">SIM IMSI</Label>
- <TextBox
- Grid.Row="4"
- Grid.Column="1"
- Width="150"
- Text="{Binding SubSimIMSI, Mode=TwoWay}" />
- <Label Grid.Row="6" Grid.Column="0">SIM ICCID</Label>
- <TextBox
- Grid.Row="6"
- Grid.Column="1"
- Width="150"
- Text="{Binding SubSimICCID, Mode=TwoWay}" />
- </Grid>
- </GroupBox>
- <StackPanel x:Name="uxFrimwareStackPanel" Orientation="Vertical">
- <Rectangle Height="10" />
- <GroupBox Header="Version Information">
- <StackPanel Orientation="Vertical">
- <Grid Margin="0,5,0,5" HorizontalAlignment="Left">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="150" />
- <ColumnDefinition Width="10" />
- <ColumnDefinition Width="150" />
- <ColumnDefinition Width="10" />
- <ColumnDefinition Width="150" />
- <ColumnDefinition Width="10" />
- <ColumnDefinition Width="80" />
- </Grid.ColumnDefinitions>
- <ComboBox Grid.Column="0" />
- <TextBox Grid.Column="2" />
- <TextBox Grid.Column="4" />
- <Button Grid.Column="6">
- <Label>Delete</Label>
- </Button>
- </Grid>
- </StackPanel>
- </GroupBox>
- <Rectangle Height="10" />
- <GroupBox Header="Version Information Dispenser 1" />
- <Rectangle Height="10" />
- <GroupBox Header="Version Information Dispenser 2" />
- </StackPanel>
- <Rectangle Height="10" />
- <Button
- Width="100"
- Height="40"
- HorizontalAlignment="Left"
- Click="AddDispenser_Click">
- <Label VerticalAlignment="Center">Add Dispenser</Label>
- </Button>
- <Rectangle Height="20" />
- </StackPanel>
- </StackPanel>
- </UserControl>
|