blob: 0e7ffc7a0bc9bb3ea63a36ab1b0e00d63bf28c1a (
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
|
<UserControl x:Class="Tango.AzureUtils.UI.Views.EnvironmentFirmwareUpgradeView"
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:vm="clr-namespace:Tango.AzureUtils.UI.ViewModels"
xmlns:helpers="clr-namespace:Tango.SharedUI.Helpers;assembly=Tango.SharedUI"
xmlns:global="clr-namespace:Tango.AzureUtils.UI"
xmlns:localControls="clr-namespace:Tango.AzureUtils.UI.Controls"
xmlns:local="clr-namespace:Tango.AzureUtils.UI.Views"
mc:Ignorable="d"
d:DesignHeight="700"
d:DesignWidth="1100"
d:DataContext="{d:DesignInstance Type=vm:EnvironmentFirmwareUpgradeViewVM, IsDesignTimeCreatable=False}"
DataContext="{x:Static global:ViewModelLocator.EnvironmentFirmwareUpgradeViewVM}"
Background="{StaticResource PrimaryBackgroundBrush}"
Foreground="{StaticResource PrimaryForegroundBrush}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50*"/>
<ColumnDefinition Width="60*"/>
</Grid.ColumnDefinitions>
<GroupBox Header="Source Deployment Slot" Padding="5" Margin="10">
<DockPanel>
<ComboBox DockPanel.Dock="Top" ItemsSource="{Binding DeploymentSlots}" SelectedItem="{Binding SelectedDeploymentSlot}" DisplayMemberPath="Name"></ComboBox>
<localControls:WebAppPropertiesControl VerticalAlignment="Top" Margin="0 20 0 0" WebApp="{Binding SelectedDeploymentSlot}" />
</DockPanel>
</GroupBox>
<Grid Grid.Column="1">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="300">
<GroupBox Header="Machine Type Selection" Padding="30" Width="500">
<StackPanel>
<TextBlock>Select Machine Type</TextBlock>
<DockPanel Margin="0 10 0 0">
<ComboBox ItemsSource="{Binding MachineTypes}" SelectedItem="{Binding SelectedMachineType}"></ComboBox>
</DockPanel>
</StackPanel>
</GroupBox>
<GroupBox Header="Firmware Package Selection" Padding="30" Width="500" Margin="0 20 0 0">
<StackPanel>
<TextBlock>Browse for .tfp file and press upgrade.</TextBlock>
<DockPanel Margin="0 10 0 0">
<Button Command="{Binding BrowseFileCommand}" Padding="10 0" Margin="5 0 0 0" DockPanel.Dock="Right">Browse</Button>
<TextBox Text="{Binding FilePath}" VerticalAlignment="Center" IsReadOnly="True" />
</DockPanel>
</StackPanel>
</GroupBox>
<TextBlock HorizontalAlignment="Center" Margin="0 20 0 0" FontSize="14" FontWeight="SemiBold">
<Run>Selected Firmware Version:</Run>
<Run Text="{Binding FirmwareVersion,TargetNullValue='N/A',FallbackValue='N/A'}"></Run>
</TextBlock>
<Button Padding="20" Margin="0 80 0 0" MaxWidth="300" Command="{Binding UpgradeFirmwareCommand}">UPGRADE FIRMWARE</Button>
</StackPanel>
</Grid>
</Grid>
</UserControl>
|