public OutputViewModel(OutputBase element, SelectableBase parent) : base(element, parent) { if (element is AggregateOutputBase aggregateOutput) { this.Children.Add(new FilterCollectionViewModel(aggregateOutput, this)); } }
public GroupViewModel(EntityGroup entityGroup, SelectableBase parent) : base(entityGroup, parent) { this.Children.Add(new ConditionCollectionViewModel(entityGroup, this)); this.Children.Add(new FilterCollectionViewModel(entityGroup, this)); this.Children.Add(new OutputCollectionViewModel(entityGroup, this)); this.Children.Add(new OrderingCollectionViewModel(entityGroup, this)); this.Children.Add(new GroupCollectionViewModel(entityGroup, this)); }
public OutputCollectionViewModel(EntityGroup entityGroup, SelectableBase parent) : base(parent) { this.SourceCollection = entityGroup.Outputs; foreach (var child in this.SourceCollection) { this.AddChild(child); } }
public FilterCollectionViewModel(AggregateOutputBase aggregateOutput, SelectableBase parent) : base(parent) { this.SourceCollection = aggregateOutput.Filters; foreach (var child in this.SourceCollection) { this.AddChild(child); } }
public GroupCollectionViewModel(Query query, SelectableBase parent) : base(parent) { this.SourceCollection = query.Groups; foreach (var child in this.SourceCollection) { this.AddChild(child); } }
protected SelectableBase(SelectableBase parent) { this.Parent = parent; this.Index = NextIndex++; }
public ConditionViewModel(CompareConditionBase element, SelectableBase parent) : base(element, parent) { }
public FilterViewModel(FilterBase element, SelectableBase parent) : base(element, parent) { }
public OrderingViewModel(OrderByBase element, SelectableBase parent) : base(element, parent) { }
protected SelectableElementWithCollectionViewModel(TElement source, SelectableBase parent) : base(source, parent) { }
public QueryViewModel(Query query, SelectableBase parent) : base(query, parent) { this.Children.Add(new GroupCollectionViewModel(query, this)); }
protected SelectableCollectionViewModel(SelectableBase parent) : base(parent) { }