From be08172cf8868b8c18c8fa1177fb3ca92b957768 Mon Sep 17 00:00:00 2001 From: Rich Date: Mon, 15 Sep 2014 18:11:42 +0000 Subject: [PATCH] Change to sub-format titles to exclude the parent title, if the title begins with an asterisk --- PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs index c8f3eec2..acdd83d7 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs @@ -145,6 +145,7 @@ namespace VEPROMS.CSLA.Library get { if (ParentID == 1) return Description + " (" + Name + ")"; + if (Description.StartsWith("*")) return Description.Substring(1) + " (" + Name + ")"; return MyParent.Description + " - " + Description + " (" + Name + ")"; } } @@ -449,6 +450,7 @@ namespace VEPROMS.CSLA.Library get { if (ParentID == 1) return Description + " (" + Name + ")"; + if (Description.StartsWith("*")) return Description.Substring(1) + " (" + Name + ")"; return MyParent.Description + " - " + Description + " (" + Name + ")"; } }