aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.MachineConfiguration/Views/ConfigurationView.xaml
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-04 13:01:49 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-04 13:01:49 +0200
commit024eb7867d2b400212ce4ce0e4845d99bf532568 (patch)
tree65e379ad4b25bb2c8e0ebe6f05eb67cad1a2ff2e /Software/Visual_Studio/FSE/Modules/Tango.FSE.MachineConfiguration/Views/ConfigurationView.xaml
parentee3f1aa159ebb326e7c7053501130afa06bf47d4 (diff)
downloadTango-024eb7867d2b400212ce4ce0e4845d99bf532568.tar.gz
Tango-024eb7867d2b400212ce4ce0e4845d99bf532568.zip
First steps on FSE configuration module.
Diffstat (limited to 'Software/Visual_Studio/FSE/Modules/Tango.FSE.MachineConfiguration/Views/ConfigurationView.xaml')
-rw-r--r--Software/Visual_Studio/FSE/Modules/Tango.FSE.MachineConfiguration/Views/ConfigurationView.xaml115
1 files changed, 115 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Modules/Tango.FSE.MachineConfiguration/Views/ConfigurationView.xaml b/Software/Visual_Studio/FSE/Modules/Tango.FSE.MachineConfiguration/Views/ConfigurationView.xaml
new file mode 100644
index 000000000..8d8aa7b0e
--- /dev/null
+++ b/Software/Visual_Studio/FSE/Modules/Tango.FSE.MachineConfiguration/Views/ConfigurationView.xaml
@@ -0,0 +1,115 @@
+<UserControl x:Class="Tango.FSE.MachineConfiguration.Views.ConfigurationView"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:local="clr-namespace:Tango.FSE.MachineConfiguration.Views"
+ xmlns:global="clr-namespace:Tango.FSE.MachineConfiguration"
+ xmlns:vm="clr-namespace:Tango.FSE.MachineConfiguration.ViewModels"
+ xmlns:commonControls="clr-namespace:Tango.FSE.Common.Controls;assembly=Tango.FSE.Common"
+ xmlns:resolution="clr-namespace:Tango.FSE.Common.Resolution;assembly=Tango.FSE.Common"
+ xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
+ xmlns:autoComplete="clr-namespace:Tango.AutoComplete.Editors;assembly=Tango.AutoComplete"
+ mc:Ignorable="d"
+ d:DesignHeight="1080" d:DesignWidth="1920" d:DataContext="{d:DesignInstance Type=vm:ConfigurationViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.ConfigurationViewVM}" d:DesignStyle="{StaticResource FSE_User_Control_Designer}">
+ <Grid Margin="20">
+
+ <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
+ <StackPanel>
+
+ <GroupBox Margin="0 20" Style="{StaticResource FSE_Game_GroupBox}" Header="PROVISIONING">
+ <StackPanel Width="400" Margin="0 0 0 5">
+ <DockPanel VerticalAlignment="Top" Margin="0 10 0 0" ToolTip="Activate the windows operating system license">
+ <ToggleButton IsChecked="{Binding Machine.SetupActivation}" />
+ <TextBlock VerticalAlignment="Center" Margin="10 0 0 0">Activate Windows License</TextBlock>
+ </DockPanel>
+
+ <StackPanel Margin="20 0 0 0">
+ <TextBlock Foreground="{StaticResource FSE_GrayBrush}" FontSize="{StaticResource FSE_SmallerFontSize}">License Key</TextBlock>
+ <TextBox Foreground="{StaticResource FSE_GrayBrush}" Text="{Binding Machine.OsKey,UpdateSourceTrigger=PropertyChanged}" FontSize="{StaticResource FSE_SmallFontSize}" VerticalAlignment="Center" Style="{StaticResource FSE_Rounded_Corners_TextBox}" Margin="0 2 0 0" Width="250" HorizontalAlignment="Left"></TextBox>
+ </StackPanel>
+
+ <DockPanel Margin="0 10 0 0" ToolTip="Install Team Viewer for remote desktop support">
+ <ToggleButton IsChecked="{Binding Machine.SetupRemoteAssistance}" />
+ <TextBlock VerticalAlignment="Center" Margin="10 0 0 0">Setup Team Viewer</TextBlock>
+ </DockPanel>
+
+ <DockPanel Margin="0 10 0 0" ToolTip="Perform UWF activation for protecting the disk by resetting file system changes after each system restart">
+ <ToggleButton IsChecked="{Binding Machine.SetupUwf}" />
+ <TextBlock VerticalAlignment="Center" Margin="10 0 0 0">Activate Disk Protection</TextBlock>
+ </DockPanel>
+
+ <DockPanel Margin="0 10 0 0" ToolTip="Connect the panel PC application to an in-memory emulator (for testing purpose only)">
+ <ToggleButton IsChecked="{Binding Machine.IsDemo}" />
+ <TextBlock VerticalAlignment="Center" Margin="10 0 0 0">Use Firmware Emulator (Demo Machine)</TextBlock>
+ </DockPanel>
+ <StackPanel Margin="2 20 0 0">
+ <TextBlock FontWeight="SemiBold" Foreground="{StaticResource FSE_PrimaryAccentBrush}">Device Registration</TextBlock>
+
+ <DockPanel>
+ <StackPanel>
+
+ <TextBlock Margin="0 5 0 0" FontSize="{StaticResource FSE_SmallFontSize}">
+ <Run>Registered:</Run>
+ <Run Foreground="{StaticResource FSE_GrayBrush}" Text="{Binding Machine.IsDeviceRegistered,Mode=OneWay,Converter={StaticResource BooleanToYesNoConverter},FallbackValue='No'}"></Run>
+ </TextBlock>
+
+ <TextBlock Margin="0 5 0 0" FontSize="{StaticResource FSE_SmallFontSize}">
+ <Run>Device ID:</Run>
+ <Run Foreground="{StaticResource FSE_GrayBrush}" Text="{Binding Machine.DeviceId,Mode=OneWay,FallbackValue='N/A'}"></Run>
+ </TextBlock>
+
+ <TextBlock Margin="0 5 0 0" FontSize="{StaticResource FSE_SmallFontSize}">
+ <Run>Device Name:</Run>
+ <Run Foreground="{StaticResource FSE_GrayBrush}" Text="{Binding Machine.DeviceName,Mode=OneWay,FallbackValue='N/A'}"></Run>
+ </TextBlock>
+ </StackPanel>
+
+ <Button ToolTip="Device registration protects the system from provisioning of the same machine on multiple devices (panel PC's). Use this reset option when replacing an existing panel PC with a new one." IsEnabled="{Binding Machine.IsDeviceRegistered}" Cursor="Hand" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{StaticResource FSE_RedBrush}" Style="{StaticResource FSE_FlatButton_ForegroundAccentHover}">Reset Device Registration</Button>
+ </DockPanel>
+ </StackPanel>
+ </StackPanel>
+ </GroupBox>
+
+ <GroupBox Margin="0 20" Style="{StaticResource FSE_Game_GroupBox}" Header="MACHINE UPDATE">
+ <StackPanel Width="400" Margin="0 0 0 5">
+ <DockPanel ToolTip="Perform or skip firmware upgrade when updating">
+ <ToggleButton IsChecked="{Binding Machine.SetupFirmware}" />
+ <TextBlock VerticalAlignment="Center" Margin="10 0 0 0">Perform Firmware Upgrade</TextBlock>
+ </DockPanel>
+
+ <DockPanel Margin="0 10 0 0" ToolTip="Force the machine to perform an update even if there is no update available">
+ <ToggleButton IsEnabled="{Binding Machine.SuspendVersionUpdate,Converter={StaticResource BooleanInverseConverter}}" IsChecked="{Binding Machine.ForceVersionUpdate}" />
+ <TextBlock VerticalAlignment="Center" Margin="10 0 0 0">Force Version Update</TextBlock>
+ </DockPanel>
+
+ <DockPanel Margin="0 10 0 0" ToolTip="Prevent this machine from updating software">
+ <ToggleButton IsEnabled="{Binding Machine.ForceVersionUpdate,Converter={StaticResource BooleanInverseConverter}}" IsChecked="{Binding Machine.SuspendVersionUpdate}" />
+ <TextBlock VerticalAlignment="Center" Margin="10 0 0 0">Suspend Version Update</TextBlock>
+ </DockPanel>
+ </StackPanel>
+ </GroupBox>
+
+ <GroupBox Margin="0 20" Style="{StaticResource FSE_Game_GroupBox}" Header="IDENTITY">
+ <StackPanel Width="400" Margin="0 0 0 5">
+
+ <StackPanel Margin="0 10 0 0">
+ <TextBlock FontSize="{StaticResource FSE_SmallFontSize}" Foreground="{StaticResource FSE_GrayBrush}">Serial Number</TextBlock>
+ <TextBox Margin="0 2 0 0" Style="{StaticResource FSE_Rounded_Corners_TextBox}" Text="{Binding Machine.SerialNumber}" Width="250" HorizontalAlignment="Left"></TextBox>
+ </StackPanel>
+
+ <StackPanel Margin="0 10 0 0">
+ <TextBlock FontSize="{StaticResource FSE_SmallFontSize}" Foreground="{StaticResource FSE_GrayBrush}">Name</TextBlock>
+ <TextBox Margin="0 2 0 0" Style="{StaticResource FSE_Rounded_Corners_TextBox}" Text="{Binding Machine.Name}" Width="250" HorizontalAlignment="Left"></TextBox>
+ </StackPanel>
+
+ <StackPanel Margin="0 10 0 0">
+ <TextBlock FontSize="{StaticResource FSE_SmallFontSize}" Foreground="{StaticResource FSE_GrayBrush}">Organization</TextBlock>
+ <ComboBox Width="250" HorizontalAlignment="Left" ItemsSource="{Binding Organizations}" SelectedItem="{Binding Machine.Organization}" DisplayMemberPath="Name" />
+ </StackPanel>
+ </StackPanel>
+ </GroupBox>
+ </StackPanel>
+ </ScrollViewer>
+ </Grid>
+</UserControl>