format logic from Rich

This commit is contained in:
2009-09-01 13:04:41 +00:00
parent efe1ddf609
commit cb3dea8116
3 changed files with 387 additions and 80 deletions

View File

@@ -21,7 +21,15 @@ using System.ComponentModel;
namespace VEPROMS.CSLA.Library
{
public partial class Format
public partial interface IFormatOrFormatInfo
{
PlantFormat PlantFormat { get;}
IFormatOrFormatInfo MyIParent { get;}
string Data { get; }
string ToString();
string FullName { get; }
}
public partial class Format:IFormatOrFormatInfo
{
#region PlantFormat
[NonSerialized]
@@ -29,6 +37,7 @@ namespace VEPROMS.CSLA.Library
public PlantFormat PlantFormat
{ get { return (_PlantFormat != null ? _PlantFormat : _PlantFormat = new PlantFormat(this)); } }
#endregion
public IFormatOrFormatInfo MyIParent { get { return MyParent; } }
public override string ToString()
{
//return Name;
@@ -44,14 +53,15 @@ namespace VEPROMS.CSLA.Library
}
}
}
public partial class FormatInfo
public partial class FormatInfo : IFormatOrFormatInfo
{
#region PlantFormat
[NonSerialized]
private PlantFormat _PlantFormat;
public PlantFormat PlantFormat
{ get { return (_PlantFormat != null ? _PlantFormat : _PlantFormat = new PlantFormat(this.Get())); } }
{ get { return (_PlantFormat != null ? _PlantFormat : _PlantFormat = new PlantFormat(this)); } }
#endregion
public IFormatOrFormatInfo MyIParent { get { return MyParent; } }
public override string ToString()
{
//return Name;