private void addConfigPanel() { ConfigPanel config = new ConfigPanel(); string[] names = (string[])sensornames.ToArray(typeof(string)); string[] pid = (string[])pids.ToArray(typeof(string)); config.Popcbo(names, pid); config.Location = new Point(0, height); config.Width = this.Width; config.Click += new System.EventHandler(ConfigPanel_Click); this.pnlMain.Controls.Add(config); this.configs.Add(config); height += 25; }
/// <summary> /// Adds the config panel. /// </summary> private void AddConfigPanel() { ConfigPanel config = new ConfigPanel(); string[] names = (string[])this.sensorNames.ToArray(typeof(string)); string[] pid = (string[])this.pids.ToArray(typeof(string)); config.Popcbo(names, pid); config.Location = new Point(0, this.heightConfigPanel); config.Width = this.Width; config.Click += new System.EventHandler(this.ConfigPanel_Click); this.panelSensorSelection.Controls.Add(config); this.configPanelSensors.Add(config); this.heightConfigPanel += 25; }