public CopyVersionForm(IList<String> MonitorGroupLocations) { InitializeComponent(); CopyLocFromExtLoc = new Dictionary<string,string>(); MonitorLocationsPanelList = new PanelList<string>(); this.MonitorLocationsPanel.Controls.Add(MonitorLocationsPanelList); PanelFromMonitorGroupLocation pan = new PanelFromMonitorGroupLocation(); pan.CopyLocFromExtLoc = CopyLocFromExtLoc; MonitorLocationsPanelList.PanelFromData = pan; MonitorLocationsPanelList.AddData(MonitorGroupLocations); 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); }
private void SetRulesNTre(Object RulesO) { if (this.InvokeRequired) { this.Invoke(new VoidObject(SetRulesNTre), new object[] { RulesO }); return; } List<GuiInfoMGProperties> Rules = (List<GuiInfoMGProperties>)RulesO; ExcluPanLis = new PanelList<GuiInfoMGProperties>(); this.SuspendLayout(); this.Controls.Add(ExcluPanLis); ExcluPanLis.Dock = DockStyle.Fill; ExcluPanLis.Size = this.Size; fromM = new MGProRowFromMGObject(); ExcluPanLis.PanelFromData = fromM; ExcluPanLis.AddData(Rules); this.ResumeLayout(false); }