From f20cc96212e9d473a9f39d463cfd4499d76b8977 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 8 Oct 2009 14:31:06 +0000 Subject: [PATCH] Removed debug print Added MyDocVersionInfo to DocVersion Removed GetChildren from editable object Removed HasChildren from editable object Removed ActiveParent from editable object Removed ActiveFormat from editable object Removed LocalFormat from editable object --- .../Extension/DocVersionExt.cs | 70 ++++++++++--------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs index 39cbf066..a57e4bc5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs @@ -81,44 +81,46 @@ namespace VEPROMS.CSLA.Library //return string.Format("{0} - {1}", Name, Title); } #region IVEDrillDown - public System.Collections.IList GetChildren() - { - return null; - } - public bool HasChildren - { - get { return _ItemID > 0; } - } - public IVEDrillDown ActiveParent - { - get - { - return MyFolder; - } - } - private Format _ActiveFormat = null; - public Format ActiveFormat - { - get - { - if (_ActiveFormat == null) - _ActiveFormat = LocalFormat != null ? LocalFormat : ActiveParent.ActiveFormat; - return _ActiveFormat; - } - set - { - _ActiveFormat = null; - } - } - public Format LocalFormat - { - get { return MyFormat; } - } + //public System.Collections.IList GetChildren() + //{ + // return null; + //} + //public bool HasChildren + //{ + // get { return _ItemID > 0; } + //} + //public IVEDrillDown ActiveParent + //{ + // get + // { + // return MyFolder; + // } + //} + //private Format _ActiveFormat = null; + //public Format ActiveFormat + //{ + // get + // { + // if (_ActiveFormat == null) + // _ActiveFormat = LocalFormat != null ? LocalFormat : ActiveParent.ActiveFormat; + // return _ActiveFormat; + // } + // set + // { + // _ActiveFormat = null; + // } + //} + //public Format LocalFormat + //{ + // get { return MyFormat; } + //} public ConfigDynamicTypeDescriptor MyConfig { get { return DocVersionConfig; } } #endregion + public DocVersionInfo MyDocVersionInfo + { get { return DocVersionInfo.Get(VersionID); } } } public partial class DocVersionInfo : IVEDrillDownReadOnly { @@ -359,7 +361,7 @@ namespace VEPROMS.CSLA.Library public FormatInfo LocalFormat { get { - Console.WriteLine("DV Local {0} {1} {2}", (MyFormat == null) ? "MYformat is null" : MyFormat.Name,FormatID,(MyFormat == null)?0:MyFormat.FormatID); + //Console.WriteLine("DV Local {0} {1} {2}", (MyFormat == null) ? "MYformat is null" : MyFormat.Name,FormatID,(MyFormat == null)?0:MyFormat.FormatID); return MyFormat; } }