diff options
| author | Roy <Roy.mail.net@gmail.com> | 2023-09-04 03:16:28 +0300 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2023-09-04 03:16:28 +0300 |
| commit | 190df294c6f8e4f93e106ede25b39d22221d12d5 (patch) | |
| tree | a7f16efd5b66beddfa8789ad67b432a310d84f66 /Software/Visual_Studio/Azure/Tango.AzureUtils.UI | |
| parent | 78ba28666b686329661f4a8fded423af94bbfb84 (diff) | |
| download | Tango-190df294c6f8e4f93e106ede25b39d22221d12d5.tar.gz Tango-190df294c6f8e4f93e106ede25b39d22221d12d5.zip | |
Implemented Eureka Version Upgrades Azure Utils.
Diffstat (limited to 'Software/Visual_Studio/Azure/Tango.AzureUtils.UI')
3 files changed, 21 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Controls/WebAppPropertiesControl.xaml b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Controls/WebAppPropertiesControl.xaml index 40c1b8223..ab4b62ae7 100644 --- a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Controls/WebAppPropertiesControl.xaml +++ b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Controls/WebAppPropertiesControl.xaml @@ -9,8 +9,8 @@ mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=azure:IWebAppBase, IsDesignTimeCreatable=False}" x:Name="control" > <Grid> - <StackPanel TextElement.FontSize="10"> - <controls:TableGrid RowHeight="20"> + <StackPanel TextElement.FontSize="9"> + <controls:TableGrid RowHeight="18"> <TextBlock FontWeight="SemiBold">ADDRESS:</TextBlock> <ItemsControl ItemsSource="{Binding ElementName=control,Path=HostNames}"/> @@ -56,12 +56,18 @@ <TextBlock FontWeight="SemiBold">Machine Studio Version:</TextBlock> <TextBlock Text="{Binding ElementName=control,Path=MachineStudioVersion.Version}"></TextBlock> - <TextBlock FontWeight="SemiBold">Tango Application Version:</TextBlock> + <TextBlock FontWeight="SemiBold">PPC Application Version:</TextBlock> <TextBlock Text="{Binding ElementName=control,Path=TangoVersion.VersionAndTag}"></TextBlock> - <TextBlock FontWeight="SemiBold">Tango Firmware Version::</TextBlock> + <TextBlock FontWeight="SemiBold">PPC Firmware Version::</TextBlock> <TextBlock Text="{Binding ElementName=control,Path=TangoVersion.FirmwareVersion}"></TextBlock> + <TextBlock FontWeight="SemiBold">Twine X4 Application Version:</TextBlock> + <TextBlock Text="{Binding ElementName=control,Path=EurekaVersion.VersionAndTag}"></TextBlock> + + <TextBlock FontWeight="SemiBold">Twine X4 Firmware Version::</TextBlock> + <TextBlock Text="{Binding ElementName=control,Path=EurekaVersion.FirmwareVersion}"></TextBlock> + <TextBlock FontWeight="SemiBold">Tango FSE Version:</TextBlock> <TextBlock Text="{Binding ElementName=control,Path=FseVersion.Version}"></TextBlock> diff --git a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Controls/WebAppPropertiesControl.xaml.cs b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Controls/WebAppPropertiesControl.xaml.cs index 51303d126..22396cefe 100644 --- a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Controls/WebAppPropertiesControl.xaml.cs +++ b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Controls/WebAppPropertiesControl.xaml.cs @@ -66,6 +66,14 @@ namespace Tango.AzureUtils.UI.Controls public static readonly DependencyProperty TangoVersionProperty = DependencyProperty.Register("TangoVersion", typeof(TangoVersion), typeof(WebAppPropertiesControl), new PropertyMetadata(null)); + public TangoVersion EurekaVersion + { + get { return (TangoVersion)GetValue(EurekaVersionProperty); } + set { SetValue(EurekaVersionProperty, value); } + } + public static readonly DependencyProperty EurekaVersionProperty = + DependencyProperty.Register("EurekaVersion", typeof(TangoVersion), typeof(WebAppPropertiesControl), new PropertyMetadata(null)); + public FseVersion FseVersion { get { return (FseVersion)GetValue(FseVersionProperty); } @@ -144,6 +152,7 @@ namespace Tango.AzureUtils.UI.Controls var azure = await AzureUtilsAuthenticationFactory.AuthenticateOrGetAsync(); var databaseManager = new DatabaseManager(azure); TangoVersion = await databaseManager.GetLatestPPCVersion(app, PPCVersionTag); + EurekaVersion = await databaseManager.GetLatestEurekaVersion(app, PPCVersionTag); MachineStudioVersion = await databaseManager.GetLatestMachineStudioVersion(app); FseVersion = await databaseManager.GetLatestFSEVersion(app, FSEBuildVariants.FSE); TwineRSMVersion = await databaseManager.GetLatestFSEVersion(app, FSEBuildVariants.TwineRSM); diff --git a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Views/EnvironmentUpgradeView.xaml b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Views/EnvironmentUpgradeView.xaml index 5b6491a48..fe82fb0b8 100644 --- a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Views/EnvironmentUpgradeView.xaml +++ b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Views/EnvironmentUpgradeView.xaml @@ -47,6 +47,8 @@ <CheckBox Click="OnConfigChanged" Margin="0 5 0 0" IsChecked="{Binding Config.UpgradeMachineStudioDatabaseVersion}" >Upgrade Machine Studio Database Version</CheckBox> <CheckBox Click="OnConfigChanged" Margin="0 5 0 0" IsChecked="{Binding Config.CopyPPCStorageBlobs}" >Upgrade PPC Blob Storage</CheckBox> <CheckBox Click="OnConfigChanged" Margin="0 5 0 0" IsChecked="{Binding Config.UpgradePPCDatabaseVersion}" >Upgrade PPC Database Version</CheckBox> + <CheckBox Click="OnConfigChanged" Margin="0 5 0 0" IsChecked="{Binding Config.CopyEurekaStorageBlobs}" >Upgrade Twine X4 Blob Storage</CheckBox> + <CheckBox Click="OnConfigChanged" Margin="0 5 0 0" IsChecked="{Binding Config.UpgradeEurekaDatabaseVersion}" >Upgrade Twine X4 Database Version</CheckBox> <CheckBox Click="OnConfigChanged" Margin="0 5 0 0" IsChecked="{Binding Config.CopyFSEStorageBlobs}" >Upgrade FSE Blob Storage</CheckBox> <CheckBox Click="OnConfigChanged" Margin="0 5 0 0" IsChecked="{Binding Config.UpgradeFSEDatabaseVersion}" >Upgrade FSE Database Version</CheckBox> <CheckBox Click="OnConfigChanged" Margin="0 5 0 0" IsChecked="{Binding Config.CopyTwineRSMStorageBlobs}" >Upgrade Twine RSM Blob Storage</CheckBox> |
