aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.MachineConfiguration/Views/ConfigurationView.xaml
blob: 8d8aa7b0e53a3604e408beab640803d4715c0a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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>