aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/GeneralInformationView.xaml
blob: b4bc717cc988dc55066207a0ce7f21e29a453928 (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
116
117
118
119
120
121
122
<UserControl x:Class="Tango.PPC.UI.Dialogs.GeneralInformationView"
             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:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
             xmlns:local="clr-namespace:Tango.PPC.UI.Dialogs"
             mc:Ignorable="d" 
             Background="{StaticResource TangoPrimaryBackgroundBrush}" Width="750" Height="700" d:DataContext="{d:DesignInstance Type=local:GeneralInformationViewVM, IsDesignTimeCreatable=False}">
    <Grid  Margin="20">
        <DockPanel>

            <Grid DockPanel.Dock="Bottom" Margin="0 20 0 0">
                <touch:TouchButton HorizontalAlignment="Center" CornerRadius="25" Command="{Binding CloseCommand}" Style="{StaticResource TangoHollowButton}" Width="180" Height="50" VerticalAlignment="Bottom">CLOSE</touch:TouchButton>
            </Grid>

            <StackPanel DockPanel.Dock="Top" HorizontalAlignment="Center">
                <Image Source="../Images/logo.png"  RenderOptions.BitmapScalingMode="Fant" Width="157" Height="51" Stretch="Uniform" HorizontalAlignment="Center" Margin="0 10 0 10"/>
                <TextBlock VerticalAlignment="Center" Margin="0 30 0 0" FontSize="{StaticResource TangoHeaderFontSize}">General Information</TextBlock>
            </StackPanel>

            <Grid Margin="0 30 0 0">
                <FlowDocumentScrollViewer VerticalScrollBarVisibility="Disabled" >
                    <FlowDocument>
                        <Table CellSpacing="0" FontFamily="{StaticResource TangoFlexoFontFamily}">
                            <Table.Resources>
                                <Style TargetType="{x:Type TableRowGroup}">
                                    <Setter Property="FontSize" Value="{StaticResource TangoDefaultFontSize}"/>
                                </Style>

                                <Style TargetType="TableCell">
                                    <Setter Property="BorderThickness" Value="0 0 0 1"></Setter>
                                    <Setter Property="BorderBrush" Value="{StaticResource TangoGrayBrush}"></Setter>
                                    <Setter Property="Padding" Value="5"></Setter>
                                </Style>
                            </Table.Resources>
                            <Table.Columns>
                                <TableColumn Width="160" />
                                <TableColumn />
                                <TableColumn />
                            </Table.Columns>

                            <TableRowGroup>

                                <TableRow>
                                    <TableCell>
                                        <Paragraph>
                                            <TextBlock>Environment:</TextBlock>
                                        </Paragraph>
                                    </TableCell>

                                    <TableCell>
                                        <Paragraph>
                                            <TextBlock Text="{Binding Settings.DeploymentSlot,Converter={StaticResource EnumToDescriptionConverter},Mode=OneWay,TargetNullValue='N/A',FallbackValue='N/A'}"/>
                                        </Paragraph>
                                    </TableCell>
                                </TableRow>

                                <TableRow>
                                    <TableCell>
                                        <Paragraph>
                                            <TextBlock>Application Version:</TextBlock>
                                        </Paragraph>
                                    </TableCell>

                                    <TableCell>
                                        <Paragraph>
                                            <TextBlock Text="{Binding ApplicationManager.VersionAndTag,Mode=OneWay,TargetNullValue='N/A',FallbackValue='N/A'}"/>
                                        </Paragraph>
                                    </TableCell>
                                </TableRow>

                                <TableRow>
                                    <TableCell>
                                        <Paragraph>
                                            <TextBlock>Site:</TextBlock>
                                        </Paragraph>
                                    </TableCell>

                                    <TableCell>
                                        <Paragraph>
                                            <TextBlock Text="{Binding SiteName,Mode=OneWay,TargetNullValue='N/A',FallbackValue='N/A'}"/>
                                        </Paragraph>
                                    </TableCell>
                                </TableRow>

                                <TableRow>
                                    <TableCell>
                                        <Paragraph>
                                            <TextBlock>Machine S/N:</TextBlock>
                                        </Paragraph>
                                    </TableCell>

                                    <TableCell>
                                        <Paragraph>
                                            <TextBlock Text="{Binding MachineProvider.Machine.SerialNumber,Mode=OneWay,IsAsync=True,FallbackValue='0000'}"/>
                                        </Paragraph>
                                    </TableCell>
                                </TableRow>

                                <TableRow>
                                    <TableCell>
                                        <Paragraph>
                                            <TextBlock>Firmware Version:</TextBlock>
                                        </Paragraph>
                                    </TableCell>

                                    <TableCell>
                                        <Paragraph>
                                            <TextBlock Text="{Binding MachineProvider.MachineOperator.DeviceInformation.Version,Mode=OneWay,TargetNullValue='N/A',FallbackValue='N/A'}"/>
                                        </Paragraph>
                                    </TableCell>
                                </TableRow>
                                
                            </TableRowGroup>
                        </Table>
                    </FlowDocument>
                </FlowDocumentScrollViewer>
            </Grid>
        </DockPanel>
    </Grid>
</UserControl>