/// <summary>
 /// Получить дочерние элементы по типу
 /// </summary>
 public IEnumerable <IElementMicrostation> GetSubElementsByType(ElementMicrostationType elementMicrostationType) =>
 SubElements.
 Where(subElement => subElement.ElementType == elementMicrostationType);
Example #2
0
 public static MsdElementType ToMsdMicrostation(ElementMicrostationType elementMicrostationType) =>
 elementMicrostationType switch
 {
Example #3
0
 /// <summary>
 /// Найти элементы в модели по типу
 /// </summary>
 public IEnumerable <IElementMicrostation> GetModelElementsMicrostation(ElementMicrostationType includeTypeMicrostation) =>
 GetModelElements(new List <ElementMicrostationType>()
 {
     includeTypeMicrostation
 }).
 Select(element => ConvertMicrostationElements.ToMicrostationElement(element, ToOwnerMicrostation()));