public FilterFileForm(FolderUnit path, List<string> CurList, List<string> FilterSt, List<string> monitor) { InitializeComponent(); this.ResizeRedraw = true; FilterPanelList = new PanelList<FilterObject>(); this.FilterPanel.Controls.Add(FilterPanelList); FilterRowFromFilterObject fromMo = new FilterRowFromFilterObject(); fromMo.monitor = monitor; fromMo.FilterStrings = FilterSt; FilterPanelList.PanelFromData = fromMo; FilterPanelList.Dock = DockStyle.Fill; FilterObList = new List<FilterObject>(); if (path != null && path.externalLocation.Length > 0) { FillFilterPanelList(path, CurList, FilterSt); } this.DialogResult = DialogResult.Cancel; }
private void SetCustomNTre(Object CusO) { if (this.InvokeRequired) { this.Invoke(new VoidObject(SetCustomNTre), new object[] { CusO }); return; } CusL = (List<FilterObject>)CusO; ExcluPanLis = new PanelList<FilterObject>(); this.SuspendLayout(); this.Controls.Add(ExcluPanLis); ExcluPanLis.Dock = DockStyle.Fill; ExcluPanLis.Size = this.Size; fromM = new FilterRowFromFilterObject(); fromM.monitor = monitor; fromM.FilterStrings = filterString; ExcluPanLis.PanelFromData = fromM; ExcluPanLis.AddData(CusL); this.ResumeLayout(false); }