From 119c428ae41476eb2fe73187b714931353c94cd5 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 8 Oct 2009 14:32:02 +0000 Subject: [PATCH] Added MyFolderInfo to Folder 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/FolderExt.cs | 72 ++++++++++--------- 1 file changed, 37 insertions(+), 35 deletions(-) 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 {