123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <Window x:Class="AwInitilizer.MainWindow"
- 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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
- xmlns:local="clr-namespace:AwInitilizer"
- mc:Ignorable="d"
- Title="Initlizer" Height="1080" Width="1920" Background="#FF363535"
- input:InputMethod.IsInputMethodEnabled="False"
- WindowStartupLocation="CenterScreen"
- WindowState="Maximized"
- WindowStyle="None"
- x:Name="uxManinWindow">
- <Window.Resources>
- </Window.Resources>
- <Viewbox>
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal">
- <StackPanel Orientation="Vertical" Width="400" Margin="10,0,0,0">
- <GroupBox>
- <GroupBox.Header>
- <Label Content="{DynamicResource Account}" Foreground="White" FontSize="16"/>
- </GroupBox.Header>
- <StackPanel Orientation="Vertical">
- <Button Width="100" Click="Logout_Click" IsEnabled="{Binding IsInputLock}">
- <Label Content="{DynamicResource logout}"/>
- </Button>
- <StackPanel Orientation="Horizontal" Height="30" Margin="0,10,0,10">
- <Grid Width="178">
- <Label Content="{DynamicResource UserID}" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox Text="{Binding UserID}" IsEnabled="{Binding IsInputLock}" IsReadOnly="True" Width="200" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="30" Margin="0,0,0,10">
- <Grid Width="178">
- <Label Content="{DynamicResource WorkOrder}" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox Text="{Binding WorkOrder}" IsEnabled="{Binding IsInputLock}" IsReadOnly="True" Width="200" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center"
- TextChanged="WorkOrder_TextChanged" KeyDown="WorkOrder_KeyDown"/>
- </StackPanel>
-
- </StackPanel>
- </GroupBox>
- <GroupBox>
- <GroupBox.Header>
- <Label Content="{DynamicResource BarcodeSetting}" Foreground="White" FontSize="16"/>
- </GroupBox.Header>
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal" Height="30">
- <Grid Width="178">
- <Label Content="{DynamicResource ModelName}" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox x:Name="uxModelName" Text="{Binding ModelName}" IsEnabled="{Binding IsInputLock}" IsReadOnly="True" Width="200" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="30" Margin="0,10,0,10">
- <Grid Width="178">
- <Label Content="{DynamicResource SerialNumber}" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox x:Name="uxSerialNumber" Text="{Binding SerialNumber}" IsEnabled="{Binding IsInputLock}" IsReadOnly="True" Width="200" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="30" Margin="0,0,0,10">
- <Grid Width="178">
- <Label Content="{DynamicResource SimStatus}" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <CheckBox x:Name="uxIsSimCheckEnabled" IsChecked="{Binding IsSimInsert}" IsEnabled="{Binding IsInputLock}" IsHitTestVisible="False" VerticalAlignment="Center" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="30" Margin="0,0,0,10">
- <Grid Width="178">
- <Label Content="{DynamicResource ICCID}" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox x:Name="uxICCID" Text="{Binding ICCID}" IsReadOnly="True" Width="200" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center">
- <TextBox.IsEnabled>
- <MultiBinding Converter="{StaticResource booleanAndConverter}">
- <Binding Path="IsSimInsert" />
- <Binding Path="IsInputLock" />
- </MultiBinding>
- </TextBox.IsEnabled>
- </TextBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="30" Margin="0,0,0,10">
- <Grid Width="178">
- <Label Content="{DynamicResource IMSI}" Foreground="White" FontSize="16" HorizontalAlignment="Center"/>
- </Grid>
- <TextBox x:Name="uxIMSI" Text="{Binding IMSI}" IsReadOnly="True" Width="200" FontSize="16" TextAlignment="Center" VerticalContentAlignment="Center">
- <TextBox.IsEnabled>
- <MultiBinding Converter="{StaticResource booleanAndConverter}">
- <Binding Path="IsSimInsert" />
- <Binding Path="IsInputLock" />
- </MultiBinding>
- </TextBox.IsEnabled>
- </TextBox>
- </StackPanel>
- </StackPanel>
- </GroupBox>
- </StackPanel>
- <StackPanel Orientation="Vertical" Width="400" Margin="10,0,0,0">
- <GroupBox>
- <GroupBox.Header>
- <Label Content="{DynamicResource FirmwareVersion}" Foreground="White" FontSize="16"/>
- </GroupBox.Header>
- <DataGrid AutoGenerateColumns="False" Margin="10" Height="335" CanUserSortColumns="False" IsEnabled="{Binding IsInputLock}" ItemsSource="{Binding FirmwareUpdateModels}">
- <DataGrid.Columns>
- <DataGridTextColumn Header="{DynamicResource FirmwareVersionHeaderName}" Width="150" MinWidth="50" Binding="{Binding Path=Module}" IsReadOnly="True"/>
- <DataGridTextColumn Header="{DynamicResource FirmwareVersionHeaderVersion}" Width="150" MinWidth="70" Binding="{Binding Path=Version}" IsReadOnly="True"/>
- <!--" DataGridTextColumn Header="File name" Binding="{Binding Path=FirmwareFileName}" IsReadOnly="False"/-->
- </DataGrid.Columns>
- </DataGrid>
- </GroupBox>
- </StackPanel>
- <Grid Margin="10,0,0,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="30"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Button Grid.Row="0" Margin="30" x:Name="uxStartBtn" Click="StartInit_Click">
- <Button.Template>
- <ControlTemplate TargetType="Button">
- <Border CornerRadius="10" BorderThickness="2" BorderBrush="Gray" Background="White">
- <Border.Effect>
- <DropShadowEffect ShadowDepth="10"/>
- </Border.Effect>
- <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Button.Template>
- <Button.IsEnabled>
- <MultiBinding Converter="{StaticResource booleanAndConverter}">
- <Binding Path="IsInputLock" />
- <Binding Path="IsInputCheckpassed" />
- </MultiBinding>
- </Button.IsEnabled>
- <Label FontSize="36" Content="{DynamicResource StartProcedure}"/>
- </Button>
- <StackPanel Grid.Row="1" Orientation="Vertical">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
- <ProgressBar Minimum="0" Maximum="100" x:Name="uxProgress" VerticalAlignment="Center" Height="20" Width="250"/>
- <Label x:Name="uxProgressRate" Content="0%" Foreground="White" FontSize="16"/>
- </StackPanel>
- </StackPanel>
- <Grid Grid.Row="2" Background="White" Margin="30" x:Name="uxStatusContainer">
- <Label FontSize="36" x:Name="uxStatus" Foreground="Black" Content="Idel" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Grid>
- </Grid>
- </StackPanel>
- <Label x:Name="uxStatusBar" FontSize="36" Content="" Margin="0,10,0,0" Foreground="White" HorizontalAlignment="Center"/>
- </StackPanel>
- </Viewbox>
- </Window>
|