Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FilterWrapper"/> class.
 /// </summary>
 /// <param name="parent">Родительский шаблон</param>
 /// <param name="filter">Фильтр-исходник</param>
 public FilterWrapper(ViewWrapper parent, FilterWrapper filter)
 {
     FilterId       = filter.FilterId;
     Name           = filter.Name;
     NameUpperCase  = filter.NameUpperCase;
     OriginalParent = filter.OriginalParent;
     Parent         = parent;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FilterWrapper"/> class.
 /// </summary>
 /// <param name="parent">Родительский шаблон</param>
 /// <param name="filterId">Идентификатор фильтра</param>
 public FilterWrapper(ViewWrapper parent, ElementId filterId)
 {
     OriginalParent = parent;
     Parent         = parent;
     FilterId       = filterId;
     Name           = parent.View.Document.GetElement(filterId).Name;
     NameUpperCase  = Name.ToUpper();
 }