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; }
/// <summary> /// Преобразовать элемент библиотеки Microstation во внутреннюю обертку /// </summary> public static IElementMicrostation ToMicrostationElement(Element element, IOwnerMicrostation ownerContainerMicrostation) => element switch { null => throw new ArgumentNullException(nameof(element)),
public TextElementMicrostation(TextElement textElement, IOwnerMicrostation ownerContainerMicrostation, bool isNeedCompress) : base((Element)textElement, ownerContainerMicrostation, isNeedCompress) { _textElement = textElement ?? throw new ArgumentNullException(nameof(textElement)); }
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) { }
/// <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)); }