From e3d2fe5d2333db6951ec1c29dad48e37bf94f25d Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 7 Dec 2010 12:42:42 +0000 Subject: [PATCH] --- .../VEPROMS.CSLA.Library/Extension/ItemExt.cs | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index 2684eaf4..7bbd7012 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -1594,18 +1594,21 @@ namespace VEPROMS.CSLA.Library } #endregion #region Change Bar - public bool HasChangeBar() + public bool HasChangeBar { - if (this.IsAccPages || this.IsProcedure || this.IsSection) return false; - StepInfo si = this as StepInfo; - if (si == null) return false; - StepConfig sc = si.MyConfig as StepConfig; - if (sc == null) return false; - // if there is no override & return whether there was a change to the text. - if (sc.Step_CBOverride == null) - return (DTS > MyProcedure.DTS); - else // override is on: - return (sc.Step_CBOverride == "On"); + get + { + if (this.IsAccPages || this.IsProcedure || this.IsSection) return false; + StepInfo si = this as StepInfo; + if (si == null) return false; + StepConfig sc = si.MyConfig as StepConfig; + if (sc == null) return false; + // if there is no override & return whether there was a change to the text. + if (sc.Step_CBOverride == null) + return (DTS > MyProcedure.DTS); + else // override is on: + return (sc.Step_CBOverride == "On"); + } } #endregion #region IVEReadOnlyItem