diff --git a/XenAdmin/Wizards/PatchingWizard/PlanActions/PlanAction.cs b/XenAdmin/Wizards/PatchingWizard/PlanActions/PlanAction.cs index 336d9a31f..6e2290e48 100644 --- a/XenAdmin/Wizards/PatchingWizard/PlanActions/PlanAction.cs +++ b/XenAdmin/Wizards/PatchingWizard/PlanActions/PlanAction.cs @@ -39,7 +39,7 @@ using XenAPI; namespace XenAdmin.Wizards.PatchingWizard.PlanActions { - public abstract class PlanAction + public abstract class PlanAction : IEquatable { protected static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); @@ -199,6 +199,14 @@ namespace XenAdmin.Wizards.PatchingWizard.PlanActions } } + public bool Equals(PlanAction other) + { + if (other == null) + return false; + + return string.Equals(Title, other.Title, StringComparison.OrdinalIgnoreCase); + } + public override string ToString() { return this.Title;