Use the new methods PageLeaveCore and PageLoadedCore in ChooseSrProvisioningPage

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2018-03-19 13:54:01 +00:00 committed by Konstantina Chremmou
parent ec5dcf9751
commit 45ad13133d

View File

@ -87,18 +87,15 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages
linkLabelPoolProperties.Visible = !clusteringEnabled && !restrictGfs2;
}
public override void PageLoaded(PageLoadedDirection direction)
protected override void PageLoadedCore(PageLoadedDirection direction)
{
base.PageLoaded(direction);
RefreshPage();
Connection.Cache.RegisterCollectionChanged<Cluster>(Cluster_CollectionChangedWithInvoke);
}
public override void PageLeave(PageLoadedDirection direction, ref bool cancel)
protected override void PageLeaveCore(PageLoadedDirection direction, ref bool cancel)
{
Connection.Cache.DeregisterCollectionChanged<Cluster>(Cluster_CollectionChangedWithInvoke);
base.PageLeave(direction, ref cancel);
}
private void linkLabelPoolProperties_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)