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
This commit is contained in:
Rich 2009-10-08 14:31:06 +00:00
parent d3e7bc9dd5
commit f20cc96212

View File

@ -81,44 +81,46 @@ namespace VEPROMS.CSLA.Library
//return string.Format("{0} - {1}", Name, Title); //return string.Format("{0} - {1}", Name, Title);
} }
#region IVEDrillDown #region IVEDrillDown
public System.Collections.IList GetChildren() //public System.Collections.IList GetChildren()
{ //{
return null; // return null;
} //}
public bool HasChildren //public bool HasChildren
{ //{
get { return _ItemID > 0; } // get { return _ItemID > 0; }
} //}
public IVEDrillDown ActiveParent //public IVEDrillDown ActiveParent
{ //{
get // get
{ // {
return MyFolder; // return MyFolder;
} // }
} //}
private Format _ActiveFormat = null; //private Format _ActiveFormat = null;
public Format ActiveFormat //public Format ActiveFormat
{ //{
get // get
{ // {
if (_ActiveFormat == null) // if (_ActiveFormat == null)
_ActiveFormat = LocalFormat != null ? LocalFormat : ActiveParent.ActiveFormat; // _ActiveFormat = LocalFormat != null ? LocalFormat : ActiveParent.ActiveFormat;
return _ActiveFormat; // return _ActiveFormat;
} // }
set // set
{ // {
_ActiveFormat = null; // _ActiveFormat = null;
} // }
} //}
public Format LocalFormat //public Format LocalFormat
{ //{
get { return MyFormat; } // get { return MyFormat; }
} //}
public ConfigDynamicTypeDescriptor MyConfig public ConfigDynamicTypeDescriptor MyConfig
{ {
get { return DocVersionConfig; } get { return DocVersionConfig; }
} }
#endregion #endregion
public DocVersionInfo MyDocVersionInfo
{ get { return DocVersionInfo.Get(VersionID); } }
} }
public partial class DocVersionInfo : IVEDrillDownReadOnly public partial class DocVersionInfo : IVEDrillDownReadOnly
{ {
@ -359,7 +361,7 @@ namespace VEPROMS.CSLA.Library
public FormatInfo LocalFormat public FormatInfo LocalFormat
{ {
get { 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; return MyFormat;
} }
} }