public SelectFilterFromMonitorGroup(Options o, List<string> monitor) { InitializeComponent(); m_options = o; this.FilterString = o.filterList; this.ResizeRedraw = true; this.splitContainer1.Panel1.Resize += new EventHandler(Panel1_Resize); cusfil = new CustomFilterList(); FilterObject defFiltOb; FilterO = new List<FilterObject>(); UserAddFilter = new List<FilterObject>(); MgprF = new FolderTrack.Types.MGProperties(); foreach (string listIt in FilterString) { defFiltOb = new FilterObject(); defFiltOb.mgpro = null; defFiltOb.filter = listIt; defFiltOb.use = true; defFiltOb.mode = FilterObject.FilterObjectMode.KEEP; defFiltOb.AddToCa(this); FilterO.Add(defFiltOb); UserAddFilter.Add(defFiltOb); } foreach (GuiInfoMGProperties mgpro in o.proper) { defFiltOb = new FilterObject(); defFiltOb.mgpro = mgpro; defFiltOb.filter = mgpro.description; defFiltOb.discription = mgpro.title; defFiltOb.use = mgpro.active; defFiltOb.mode = FilterObject.FilterObjectMode.PROFILT; defFiltOb.AddToCa(this); FilterO.Add(defFiltOb); } cusfil.SetCus(FilterO); cusfil.Dock = DockStyle.Fill; this.splitContainer1.Panel1.Controls.Add(cusfil); TreeNodeFromString = new Dictionary<string, TreeNode>(); filt = new Filter(); filt.AddFilter(FilterString); PopulateTree(monitor); }
public NewLocationManger(PanelList<String> NewMonitorLocationsPanelList, List<string> MonitorLocation, Button okButton) { this.NewMonitorLocationsPanelList = NewMonitorLocationsPanelList; this.MonitorLocation = MonitorLocation; FilterString = new List<string>(); filter = new Options(); filter.filterList = new List<string>(); FolderTrack.Types.MGProperties temMGP = new FolderTrack.Types.MGProperties(); filter.proper = temMGP.GetGuiProp(); filter.filtCh = new FilterChangeOb(); this.OkButton = okButton; HandleOkButton(); }