Ejemplo n.º 1
0
 protected ElementMicrostation(Element element, IOwnerMicrostation ownerContainerMicrostation)
 {
     _element = element ?? throw new ArgumentNullException(nameof(element));
     OwnerContainerMicrostation = ownerContainerMicrostation ?? throw new ArgumentNullException(nameof(ownerContainerMicrostation));
     ApplicationMicrostation    = OwnerContainerMicrostation.ApplicationMicrostation;
     ModelMicrostation          = OwnerContainerMicrostation.ModelMicrostation;
 }
 protected RangeBaseElementMicrostation(Element element, IOwnerMicrostation ownerContainerMicrostation,
                                        bool isNeedCompress)
     : base(element, ownerContainerMicrostation)
 {
     _element       = element;
     IsNeedCompress = isNeedCompress;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Преобразовать элемент библиотеки Microstation во внутреннюю обертку
 /// </summary>
 public static IElementMicrostation ToMicrostationElement(Element element, IOwnerMicrostation ownerContainerMicrostation) =>
 element switch
 {
     null => throw new ArgumentNullException(nameof(element)),
Ejemplo n.º 4
0
 public TextElementMicrostation(TextElement textElement, IOwnerMicrostation ownerContainerMicrostation,
                                bool isNeedCompress)
     : base((Element)textElement, ownerContainerMicrostation, isNeedCompress)
 {
     _textElement = textElement ?? throw new ArgumentNullException(nameof(textElement));
 }
Ejemplo n.º 5
0
 public TextElementMicrostation(TextElement textElement, IOwnerMicrostation ownerContainerMicrostation)
     : this(textElement, ownerContainerMicrostation, true)
 {
 }
 public CellElementMicrostation(CellElement cellElement, IOwnerMicrostation ownerContainerMicrostation,
                                bool isNeedCompress)
     : base((Element)cellElement, ownerContainerMicrostation, isNeedCompress)
 {
     _cellElement = cellElement ?? throw new ArgumentNullException(nameof(cellElement));
 }
 public CellElementMicrostation(CellElement cellElement, IOwnerMicrostation ownerContainerMicrostation)
     : this(cellElement, ownerContainerMicrostation, false)
 {
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Преобразовать элемент Microstation в элемент-обертку
 /// </summary>
 public static IElementMicrostation ToElementMicrostation(this Element element, IOwnerMicrostation owner) =>
 ConvertMicrostationElements.ToMicrostationElement(element, owner);
 public LineElementMicrostation(LineElement lineElement, IOwnerMicrostation ownerContainerMicrostation)
     : base((Element)lineElement, ownerContainerMicrostation)
 {
     _lineElement = lineElement ?? throw new ArgumentNullException(nameof(lineElement));
 }