Exemple #1
0
 private void CreateFilterView()
 {
     combinedFilterView = null;
     filterPanel.Controls.Clear();
     if ((Content != null) && (Content.Filters != null))
     {
         CombinedFilter filter = Content.Filters.OfType <CombinedFilter>().Where(x => x.Operation == BooleanOperation.And).FirstOrDefault();
         if (filter != null)
         {
             combinedFilterView         = (CombinedFilterView)MainFormManager.CreateView(typeof(CombinedFilterView));
             combinedFilterView.Content = (CombinedFilter)filter.Clone();
             Control control = (Control)combinedFilterView;
             control.Dock = DockStyle.Fill;
             filterPanel.Controls.Add(control);
         }
     }
 }
Exemple #2
0
 private void CreateFilterView() {
   combinedFilterView = null;
   filterPanel.Controls.Clear();
   if ((Content != null) && (Content.Filters != null)) {
     CombinedFilter filter = Content.Filters.OfType<CombinedFilter>().Where(x => x.Operation == BooleanOperation.And).FirstOrDefault();
     if (filter != null) {
       combinedFilterView = (CombinedFilterView)MainFormManager.CreateView(typeof(CombinedFilterView));
       combinedFilterView.Content = (CombinedFilter)filter.Clone();
       Control control = (Control)combinedFilterView;
       control.Dock = DockStyle.Fill;
       filterPanel.Controls.Add(control);
     }
   }
 }