Changed code to use ActiveSection rather than MyActiveSection

This commit is contained in:
Rich
2011-04-19 16:09:33 +00:00
parent 76bdab0549
commit 05c97e9aed
2 changed files with 7 additions and 4 deletions

View File

@@ -1752,7 +1752,10 @@ namespace VEPROMS.CSLA.Library
}
}
private ItemInfo _ActiveSection = null;
public ItemInfo MyActiveSection { get { return ActiveSection; } }
/// <summary>
/// MyActiveSection is used to determine if _ActiveSection is null or not.
/// </summary>
public ItemInfo MyActiveSection { get { return _ActiveSection; } }
public ItemInfo ActiveSection
{
get
@@ -1993,7 +1996,7 @@ namespace VEPROMS.CSLA.Library
if (IsCaution || IsNote) tbformat = CheckNoteCautionTab(tbformat);
int ordinal = Ordinal;
if (!IsSection && !IsProcedure) tbformat = tbformat.Replace("{Section Prefix}", this.MyActiveSection.MyTab.CleanText);
if (!IsSection && !IsProcedure) tbformat = tbformat.Replace("{Section Prefix}", this.ActiveSection.MyTab.CleanText);
string alpha = AlphabeticalNumbering(ordinal);
tbformat = tbformat.Replace("{alpha}", alpha.ToLower());
tbformat = tbformat.Replace("{alphaWpar}", alpha.ToLower());