From 3ae2116de38dca3c2736a4a650128f83bb38e019 Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 27 Jan 2012 12:38:54 +0000 Subject: [PATCH] --- .../Config/SectionConfig.cs | 43 ++++++++++--------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs b/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs index eb19e262..e5e2a50c 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs @@ -371,6 +371,26 @@ namespace VEPROMS.CSLA.Library OnPropertyChanged("Section_AutoGen"); } } + [Category("Section")] + //PROPGRID: Hide Subsection PH + [Browsable(false)] + [DisplayName("Section PrintHdr")] + [RefreshProperties(RefreshProperties.All)] + [Description("Section PrintHdr")] + public string Section_PrintHdr + { + get + { + // if null - return a "Y" + string tmp = _Xp["Section", "PrintHdr"]; + return tmp == null || tmp == "" ? "Y" : tmp; + } + set + { + _Xp["Section", "PrintHdr"] = value; + OnPropertyChanged("Section_PrintHdr"); + } + } [Browsable(false)] [DisplayName("Section OriginalSteps")] [RefreshProperties(RefreshProperties.All)] @@ -637,7 +657,7 @@ namespace VEPROMS.CSLA.Library { // if null - return a "Y" string tmp = _Xp["SubSection", "Edit"]; - return tmp == null || tmp == "" ? "Y" : tmp; + return tmp == null || tmp == "" ? "N" : tmp; } set { @@ -645,26 +665,7 @@ namespace VEPROMS.CSLA.Library OnPropertyChanged("SubSection_Edit"); } } - [Category("SubSection")] - //PROPGRID: Hide Subsection PH - [Browsable(false)] - [DisplayName("SubSection PH")] - [RefreshProperties(RefreshProperties.All)] - [Description("SubSection PH")] - public string SubSection_PH - { - get - { - // if null - return a "Y" - string tmp = _Xp["SubSection", "PH"]; - return tmp==null||tmp==""?"Y":tmp; - } - set - { - _Xp["SubSection", "PH"] = value; - OnPropertyChanged("SubSection_PH"); - } - } + [Category("SubSection")] //PROPGRID: Hide Subsection AutoIndent [Browsable(false)]