aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.UI/Dialogs/MachineConnectionWifiView.xaml
blob: c1fd6fa7c3121e78362cc3d63739d979f1f1c10f (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
<UserControl x:Class="Tango.FSE.UI.Dialogs.MachineConnectionWifiView"
             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:controls="clr-namespace:Tango.FSE.Common.Controls;assembly=Tango.FSE.Common"
             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:local="clr-namespace:Tango.FSE.UI.Dialogs"
             mc:Ignorable="d" 
             Height="300" Width="700" d:DataContext="{d:DesignInstance Type=local:MachineConnectionWifiViewVM, 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_WifiBrush}" 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_WifiBrush}">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 5" FontSize="{StaticResource FSE_LargerFontSize}" helpers:PasswordHelper.Attach="True" helpers:PasswordHelper.Password="{Binding Password,Mode=TwoWay}"></PasswordBox>
                    </StackPanel>

                    <CheckBox ToolTip="Keep trying to reconnect when a connection is lost" Margin="22 0 0 0" VerticalAlignment="Center" IsChecked="{Binding AutoReconnection}">Auto Reconnection</CheckBox>
                </StackPanel>

                <StackPanel Margin="20 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center">
                    <TextBlock Margin="25 0 0 0" Foreground="{StaticResource FSE_WifiBrush}">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&#x0a;like changing temperatures or mechanical movements.&#x0a;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>