blob: 43f32d8201320896ba45a105375fdf657d1aed67 (
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
|
<UserControl x:Class="Tango.FSE.UI.Dialogs.MachineConnectionSignalRView"
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:autoComplete="clr-namespace:Tango.AutoComplete.Editors;assembly=Tango.AutoComplete"
xmlns:helpers="clr-namespace:Tango.SharedUI.Helpers;assembly=Tango.SharedUI"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:controls="clr-namespace:Tango.FSE.Common.Controls;assembly=Tango.FSE.Common"
xmlns:local="clr-namespace:Tango.FSE.UI.Dialogs"
mc:Ignorable="d"
Height="300" Width="700" d:DataContext="{d:DesignInstance Type=local:MachineConnectionSignalRViewVM, IsDesignTimeCreatable=False}" Background="{StaticResource FSE_PrimaryBackgroundLightBrush}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}">
<Grid>
<DockPanel Margin="10">
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Margin="10">
<controls:MachineConnectionIcon ExternalBridgeClient="{Binding Machine}" Height="60" Margin="-10 0 0 0"></controls:MachineConnectionIcon>
<TextBlock FontWeight="SemiBold" VerticalAlignment="Center" Margin="10 0 0 0" FontSize="{StaticResource FSE_MessageBoxTitleFontSize}">
<Run>Connect to</Run>
<Run>'</Run><Run FontWeight="Normal" Foreground="{StaticResource FSE_SignalRBrush}" Text="{Binding Machine.SerialNumber}"></Run><Run>'</Run>
<Run FontSize="{StaticResource FSE_SmallerFontSize}" Foreground="{StaticResource FSE_GrayBrush}" Text="{Binding Machine.Machine.Name}"></Run>
</TextBlock>
</StackPanel>
<TextBlock DockPanel.Dock="Top" TextWrapping="Wrap" Margin="0 10 0 0">
<Run>Connecting to the remote machine requires a secure authentication.</Run>
<LineBreak/>
<LineBreak/>
<Run>Please enter the remote machine's password and your intention.</Run>
</TextBlock>
<Grid>
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Center">
<TextBlock Margin="25 0 0 0" Foreground="{StaticResource FSE_SignalRBrush}">Machine Password</TextBlock>
<StackPanel Orientation="Horizontal" Margin="0 5 0 0">
<materialDesign:PackIcon Kind="LockOpen" Width="20" Height="20" VerticalAlignment="Center" />
<PasswordBox materialDesign:HintAssist.Hint="●●●●●●●●●●●" Width="300" Margin="5 0 0 0" FontSize="{StaticResource FSE_LargerFontSize}" helpers:PasswordHelper.Attach="True" helpers:PasswordHelper.Password="{Binding Password,Mode=TwoWay}"></PasswordBox>
</StackPanel>
</StackPanel>
<StackPanel Margin="20 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center">
<TextBlock Margin="25 0 0 0" Foreground="{StaticResource FSE_SignalRBrush}">Intent</TextBlock>
<StackPanel Orientation="Horizontal" Margin="0 5 0 0">
<materialDesign:PackIcon Kind="Alert" Width="20" Height="20" VerticalAlignment="Center" />
<CheckBox ToolTip="Specify whether you intend to perform safety level operations on the machine
like changing temperatures or mechanical movements.
Requires a near by user to confirm the connection." Margin="5 0 0 0" VerticalAlignment="Center" IsChecked="{Binding RequireSafetyLevelOperations}">Require Safety Level Operations</CheckBox>
</StackPanel>
</StackPanel>
</Grid>
</DockPanel>
<CheckBox Margin="30 0 0 -45" HorizontalAlignment="Left" VerticalAlignment="Bottom" IsChecked="{Binding RememberMachinePassword}">Remember this connection settings</CheckBox>
</Grid>
</UserControl>
|