format logic from Rich
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user