Removed ManualModeSelected property in favour of the existing ManualUpgrade; moved the latter in the class using it.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2018-07-06 17:45:00 +01:00 committed by Mihaela Stoica
parent 8851139a11
commit 0aa43018a4
3 changed files with 3 additions and 8 deletions

View File

@ -576,9 +576,6 @@ namespace XenAdmin.Wizards.PatchingWizard
return groups;
}
[DefaultValue(true)]
protected bool ManualUpgrade { set; get; }
public override void PageCancelled()
{
DeregisterEventHandlers();

View File

@ -122,7 +122,7 @@ namespace XenAdmin.Wizards.RollingUpgradeWizard
else
AddPage(RollingUpgradeWizardInstallMethodPage, 4);
RollingUpgradeWizardPrecheckPage.ManualModeSelected = manualModeSelected;
RollingUpgradeWizardPrecheckPage.ManualUpgrade = manualModeSelected;
RollingUpgradeUpgradePage.ManualModeSelected = manualModeSelected;
var applyUpdatesToNewVersion = RollingUpgradeWizardUpgradeModePage.ApplyUpdatesToNewVersion;

View File

@ -51,10 +51,9 @@ namespace XenAdmin.Wizards.RollingUpgradeWizard
public RollingUpgradeWizardPrecheckPage()
{
InitializeComponent();
this.Dock = DockStyle.Fill;
ManualUpgrade = true;
}
private void AddEventHandlersToMasters()
{
foreach (Host master in SelectedMasters)
@ -86,7 +85,6 @@ namespace XenAdmin.Wizards.RollingUpgradeWizard
return;
}
var selectedMasters = new List<Host>(SelectedMasters);
ManualUpgrade = ManualModeSelected;
RemoveEventHandlersToMasters();
SelectedServers.Clear();
foreach (Host selectedMaster in selectedMasters)
@ -233,7 +231,7 @@ namespace XenAdmin.Wizards.RollingUpgradeWizard
}
public IEnumerable<Host> SelectedMasters { private get; set; }
public bool ManualModeSelected { private get; set; }
public bool ManualUpgrade { set; private get; }
#region private methods
public static List<Host> HostsToUpgradeOrUpdate(Pool pool)