diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/FolderExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/FolderExt.cs index 2c42e773..6e63c4bd 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/FolderExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/FolderExt.cs @@ -53,41 +53,41 @@ namespace VEPROMS.CSLA.Library return _Title; } #region IVEReadOnlyItem - public System.Collections.IList GetChildren() - { - if (FolderDocVersionCount != 0) return FolderDocVersions; - if (ChildFolderCount != 0) return ChildFolders; - return null; - } - public bool HasChildren - { - get { return _FolderDocVersionCount > 0 || _ChildFolderCount > 0; } - } - public IVEDrillDown ActiveParent - { - get - { - return MyParent; - } - } - private Format _ActiveFormat = null; - public Format ActiveFormat - { - get - { - if (_ActiveFormat == null) - _ActiveFormat = (LocalFormat != null ? LocalFormat : ActiveParent != null ? ActiveParent.ActiveFormat : null); - return _ActiveFormat; - } - set - { - _ActiveFormat = null; // Reset - } - } - public Format LocalFormat - { - get { return MyFormat; } - } + //public System.Collections.IList GetChildren() + //{ + // if (FolderDocVersionCount != 0) return FolderDocVersions; + // if (ChildFolderCount != 0) return ChildFolders; + // return null; + //} + //public bool HasChildren + //{ + // get { return _FolderDocVersionCount > 0 || _ChildFolderCount > 0; } + //} + //public IVEDrillDown ActiveParent + //{ + // get + // { + // return MyParent; + // } + //} + //private Format _ActiveFormat = null; + //public Format ActiveFormat + //{ + // get + // { + // if (_ActiveFormat == null) + // _ActiveFormat = (LocalFormat != null ? LocalFormat : ActiveParent != null ? ActiveParent.ActiveFormat : null); + // return _ActiveFormat; + // } + // set + // { + // _ActiveFormat = null; // Reset + // } + //} + //public Format LocalFormat + //{ + // get { return MyFormat; } + //} public ConfigDynamicTypeDescriptor MyConfig { get { return FolderConfig; } @@ -103,6 +103,8 @@ namespace VEPROMS.CSLA.Library return MakeFolder(myParent, myConnection, name, title, shortName, myFormat, null, config); } #endregion + public FolderInfo MyFolderInfo + { get { return FolderInfo.Get(FolderID); } } } public partial class FolderInfo:IVEDrillDownReadOnly {