Do not start updating the agility before reaching the corresponding page on the HAWizard.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2018-08-08 13:48:30 +01:00 committed by Mihaela Stoica
parent a68ca3beb2
commit 649e5a3483
2 changed files with 16 additions and 11 deletions

View File

@ -110,7 +110,7 @@ namespace XenAdmin.Dialogs
{
base.OnShown(e);
assignPriorities.Connection = pool.Connection;
assignPriorities.StartNtolUpdate();
assignPriorities.PopulatePageControls();
}
protected override void OnClosing(CancelEventArgs e)

View File

@ -60,6 +60,7 @@ namespace XenAdmin.Wizards.HAWizard_Pages
/// </summary>
public new IXenConnection Connection
{
private get { return connection; }
set
{
if (value == null)
@ -68,16 +69,20 @@ namespace XenAdmin.Wizards.HAWizard_Pages
if (connection != null)
DeregisterEvents();
this.connection = value;
connection = value;
RegisterEvents();
}
}
internal void PopulatePageControls()
{
Debug.Assert(connection != null, "Connection is null; set it to non-null before calling this method.");
UpdateMenuItems();
PopulateVMs();
haNtolIndicator.Connection = value;
haNtolIndicator.Connection = Connection;
haNtolIndicator.Settings = getCurrentSettings();
}
StartNtolUpdate();
}
private void UpdateMenuItems()
@ -203,7 +208,7 @@ namespace XenAdmin.Wizards.HAWizard_Pages
/// </summary>
internal bool ProtectVmsByDefault { get; set; }
internal void StartNtolUpdate()
private void StartNtolUpdate()
{
haNtolIndicator.StartNtolUpdate();
}
@ -693,7 +698,7 @@ namespace XenAdmin.Wizards.HAWizard_Pages
protected override void PageLoadedCore(PageLoadedDirection direction)
{
StartNtolUpdate();
PopulatePageControls();
}
public override void SelectDefaultControl()