Exemplo n.º 1
0
 public QueryBuilderViewModel(IEventAggregator eventAggregator, DocumentViewModel document, IGlobalOptions globalOptions)
 {
     EventAggregator          = eventAggregator;
     Document                 = document;
     Options                  = globalOptions;
     Filters                  = new QueryBuilderFilterList(GetModelCapabilities);
     IsVisible                = false;
     Columns                  = new QueryBuilderFieldList(EventAggregator);
     Columns.PropertyChanged += OnColumnsPropertyChanged;
     OrderBy                  = new QueryBuilderFieldList(EventAggregator);
     VisibilityChanged       += OnVisibilityChanged;
 }
 public QueryBuilderViewModel(IEventAggregator eventAggregator, DocumentViewModel document, IGlobalOptions globalOptions) : base()
 {
     EventAggregator          = eventAggregator;
     Document                 = document;
     Options                  = globalOptions;
     Filters                  = new QueryBuilderFilterList(GetModelCapabilities);
     Title                    = "Builder";
     DefaultDockingPane       = "DockMidLeft";
     IsVisible                = false;
     Columns                  = new QueryBuilderFieldList(EventAggregator);
     Columns.PropertyChanged += OnColumnsPropertyChanged;
 }