using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using XenAdmin.Wizards.PatchingWizard.PlanActions; using XenAPI; namespace XenAdmin.Wizards.PatchingWizard { public class UpgradeProgressDescriptor { public List planActions { get; private set; } public List delayedActions { get; private set; } private Host master; public float ProgressPercent = 0; public PlanAction InProgressAction = null; public PlanAction FailedWithExceptionAction = null; public List doneActions = new List(); public UpgradeProgressDescriptor(Host master, List planActions, List delayedActions) { this.master = master; this.planActions = planActions; this.delayedActions = delayedActions; } public int TotalNumberOfActions { get { return planActions.Count + delayedActions.Count; } } } }