-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpdatePromptWindow.xaml
More file actions
108 lines (101 loc) · 5.93 KB
/
Copy pathUpdatePromptWindow.xaml
File metadata and controls
108 lines (101 loc) · 5.93 KB
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
<Window x:Class="ArIED61850Tester.UpdatePromptWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ARSAS update available"
Width="520" Height="390" MinWidth="520" MinHeight="390"
ResizeMode="NoResize" WindowStartupLocation="CenterOwner"
ShowInTaskbar="False" Background="#F4F7FB"
FontFamily="Aptos, Segoe UI Variable Text, Segoe UI, Calibri"
Closing="Window_Closing">
<Window.Resources>
<Style x:Key="UpdateButton" TargetType="Button">
<Setter Property="Height" Value="36"/>
<Setter Property="Padding" Value="16,6"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="BorderBrush" Value="#C9D5E5"/>
<Setter Property="Background" Value="#EEF3FA"/>
<Setter Property="Foreground" Value="#23344D"/>
<Setter Property="FontSize" Value="12.5"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Cursor" Value="Hand"/>
</Style>
<Style x:Key="PrimaryUpdateButton" TargetType="Button" BasedOn="{StaticResource UpdateButton}">
<Setter Property="Background" Value="#2563EB"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="#2563EB"/>
</Style>
</Window.Resources>
<Grid Margin="18">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="12"/>
<RowDefinition Height="*"/>
<RowDefinition Height="14"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="White" BorderBrush="#D9E2EF" BorderThickness="1" CornerRadius="15" Padding="16">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="58"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Width="46" Height="46" CornerRadius="11" Background="#EAF1FF" VerticalAlignment="Top">
<Image Source="Assets/app-icon-256.png" Width="34" Height="34" Stretch="Uniform"/>
</Border>
<StackPanel Grid.Column="1" Margin="12,0,0,0">
<TextBlock Text="A new ARSAS version is ready" FontSize="18" FontWeight="SemiBold" Foreground="#17243A"/>
<TextBlock Margin="0,5,0,0" FontSize="12.5" Foreground="#607089" TextWrapping="Wrap">
The installer is downloaded from the verified stable release, checked by size and SHA-256, then opened automatically.
</TextBlock>
</StackPanel>
</Grid>
</Border>
<Border Grid.Row="2" Background="White" BorderBrush="#D9E2EF" BorderThickness="1" CornerRadius="15" Padding="16">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="12"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="12"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Installed version" FontSize="11.5" Foreground="#68778D"/>
<TextBlock x:Name="CurrentVersionText" Margin="0,2,0,0" FontSize="15" FontWeight="SemiBold" Foreground="#26364D"/>
</StackPanel>
<StackPanel Grid.Column="1" HorizontalAlignment="Right">
<TextBlock Text="Available version" FontSize="11.5" Foreground="#68778D" HorizontalAlignment="Right"/>
<TextBlock x:Name="LatestVersionText" Margin="0,2,0,0" FontSize="15" FontWeight="SemiBold" Foreground="#2563EB" HorizontalAlignment="Right"/>
</StackPanel>
</Grid>
<Border Grid.Row="2" Background="#F7FAFF" BorderBrush="#DCE7F5" BorderThickness="1" CornerRadius="10" Padding="11">
<TextBlock FontSize="12" Foreground="#42526A" TextWrapping="Wrap">
Save any active engineering work before installing. Choosing <Run FontWeight="SemiBold">Download & install</Run> will not modify an IED; it only updates the ARSAS desktop application.
</TextBlock>
</Border>
<StackPanel x:Name="ProgressPanel" Grid.Row="4" Visibility="Collapsed">
<ProgressBar x:Name="DownloadProgress" Height="8" Minimum="0" Maximum="100" Background="#E2EAF4" Foreground="#2563EB"/>
<TextBlock x:Name="StatusText" Margin="0,7,0,0" FontSize="11.8" Foreground="#53657C" TextWrapping="Wrap"/>
</StackPanel>
</Grid>
</Border>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="8"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Button x:Name="OpenFolderButton" Content="Open download folder" Style="{StaticResource UpdateButton}"
Visibility="Collapsed" Click="OpenFolder_Click" HorizontalAlignment="Left"/>
<Button x:Name="LaterButton" Grid.Column="1" Content="Later" Style="{StaticResource UpdateButton}" Click="Later_Click"/>
<Button x:Name="InstallButton" Grid.Column="3" Content="Download & install" Style="{StaticResource PrimaryUpdateButton}" Click="Install_Click"/>
</Grid>
</Grid>
</Window>