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);
}
#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;
}
}