示例#1
0
        private void EditWithQuery()
        {
            var qvm = new FilterQueryEditorViewModel(this.RootFilters);

            Messenger.Raise(new TransitionMessage(qvm, "ShowFilterQueryEditor"));
            if (qvm.Success)
            {
                if (qvm.FilterCluster.ConcatenateAnd)
                {
                    this.RootFilters = new[] { qvm.FilterCluster }
                }
                ;
                else
                {
                    this.RootFilters = qvm.FilterCluster.Filters.ToArray();
                }
                RaisePropertyChanged(() => RootFilterViewModels);
            }
        }
示例#2
0
 private void EditWithQuery()
 {
     var qvm = new FilterQueryEditorViewModel(this.RootFilters);
     Messenger.Raise(new TransitionMessage(qvm, "ShowFilterQueryEditor"));
     if (qvm.Success)
     {
         if (qvm.FilterCluster.ConcatenateAnd)
             this.RootFilters = new[] { qvm.FilterCluster };
         else
             this.RootFilters = qvm.FilterCluster.Filters.ToArray();
         RaisePropertyChanged(() => RootFilterViewModels);
     }
 }