Пример #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);
         }
     }
 }
Пример #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);
     }
   }
 }