2025-02-10 20:53:40 +08:00
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
|
2025-04-24 20:56:44 +08:00
|
|
|
|
namespace ShrlAlgoToolkit.RevitAddins.RvIndependent.MetroGauges.LandXMLData
|
2025-02-10 20:53:40 +08:00
|
|
|
|
{
|
|
|
|
|
|
[XmlType]
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
|
public abstract class ObjectWithNameSideSegmentPart : ObjectWithNameSideSegment
|
|
|
|
|
|
{
|
|
|
|
|
|
public ObjectWithNameSideSegmentPart() { }
|
|
|
|
|
|
|
|
|
|
|
|
public ObjectWithNameSideSegmentPart(ObjectWithNameSideSegmentPart reference)
|
|
|
|
|
|
: base(reference)
|
|
|
|
|
|
{
|
|
|
|
|
|
Part = reference.Part;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[XmlIgnore]
|
|
|
|
|
|
public string NameSidePart => NameSide + (Part != 0 ? " p" + Part : string.Empty);
|
|
|
|
|
|
|
|
|
|
|
|
[XmlIgnore]
|
|
|
|
|
|
public string NameSideSegmentPart => NameSideSegment + (Part != 0 ? " p" + Part : string.Empty);
|
|
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("p")]
|
|
|
|
|
|
public int Part { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|