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
This commit is contained in:
parent
f20cc96212
commit
119c428ae4
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user