mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
CP-28279: Make the base AutomatedUpdatesBasePage class abstract
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
73f6ebdf5c
commit
3c300accce
@ -45,7 +45,7 @@ using System.Text;
|
||||
|
||||
namespace XenAdmin.Wizards.PatchingWizard
|
||||
{
|
||||
public partial class AutomatedUpdatesBasePage : XenTabPage
|
||||
public abstract partial class AutomatedUpdatesBasePage : XenTabPage
|
||||
{
|
||||
protected static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@ -65,6 +65,7 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
panel1.Visible = false;
|
||||
}
|
||||
|
||||
#region XenTabPage overrides
|
||||
public override bool EnablePrevious()
|
||||
{
|
||||
return false;
|
||||
@ -92,20 +93,12 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
|
||||
base.PageCancelled();
|
||||
}
|
||||
|
||||
public virtual string BlurbText
|
||||
{
|
||||
get { return ""; }
|
||||
}
|
||||
|
||||
protected virtual void GeneratePlanActions(Pool pool, List<HostPlanActions> planActions, List<PlanAction> finalActions) { }
|
||||
|
||||
protected override void PageLoadedCore(PageLoadedDirection direction)
|
||||
{
|
||||
if (_thisPageIsCompleted)
|
||||
return;
|
||||
|
||||
labelTitle.Text = BlurbText;
|
||||
labelTitle.Text = BlurbText();
|
||||
|
||||
if (!StartUpgradeWorkers())
|
||||
{
|
||||
@ -115,8 +108,16 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
}
|
||||
}
|
||||
|
||||
#region background workers
|
||||
#endregion
|
||||
|
||||
#region Virtual members
|
||||
public abstract string BlurbText();
|
||||
|
||||
protected virtual void GeneratePlanActions(Pool pool, List<HostPlanActions> planActions, List<PlanAction> finalActions) { }
|
||||
|
||||
#endregion
|
||||
|
||||
#region background workers
|
||||
private bool StartUpgradeWorkers()
|
||||
{
|
||||
bool atLeastOneWorkerStarted = false;
|
||||
|
@ -77,15 +77,12 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
#endregion
|
||||
|
||||
#region AutomatedUpdatesBesePage overrides
|
||||
public override string BlurbText
|
||||
{
|
||||
get
|
||||
public override string BlurbText()
|
||||
{
|
||||
return WizardMode == WizardMode.AutomatedUpdates
|
||||
? Messages.PATCHINGWIZARD_UPLOAD_AND_INSTALL_TITLE_AUTOMATED_MODE
|
||||
: Messages.PATCHINGWIZARD_UPLOAD_AND_INSTALL_TITLE_NEW_VERSION_AUTOMATED_MODE;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void GeneratePlanActions(Pool pool, List<HostPlanActions> planActions, List<PlanAction> finalActions)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user