diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index d56b1f35..dae5515c 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -72,8 +72,7 @@ namespace VEPROMS.CSLA.Library get { // TODO: eventually want styles - // TODO: Size should be float to support 10.5 etc. - if (_WindowsFont == null) _WindowsFont = new Font(Family, (float)Size); + if (_WindowsFont == _WindowsFont) _WindowsFont = new Font(Family, (float)Size); return _WindowsFont; } } @@ -2202,6 +2201,15 @@ namespace VEPROMS.CSLA.Library return null; } } + public StepData this[string type] + { + get + { + foreach (StepData stepData in this) + if (stepData.Type == type) return stepData; + return null; + } + } public StepDataList(XmlNodeList xmlNodeList) : base(xmlNodeList) { } } #endregion @@ -2310,7 +2318,7 @@ namespace VEPROMS.CSLA.Library { get { - return LazyLoad(ref _IdentPrint, "TabData/@IdentPrint"); + return LazyLoad(ref _IdentPrint, "TabData/@Ident"); } } private LazyLoad _AltPrintTBIdent; @@ -2334,7 +2342,23 @@ namespace VEPROMS.CSLA.Library { get { - return LazyLoad(ref _RNOIdentPrint, "TabData/@RNOIdentPrint"); + return LazyLoad(ref _RNOIdentPrint, "TabData/@RNOIdent"); + } + } + private LazyLoad _Justify; + public string Justify + { + get + { + return LazyLoad(ref _Justify, "TabData/@Justify"); + } + } + private LazyLoad _CheckOff; + public string CheckOff + { + get + { + return LazyLoad(ref _CheckOff, "TabData/@CheckOff"); } } private VE_Font _Font;