private void button1_Click(object sender, EventArgs e) { if ((advSensorForm == null) || (advSensorForm.IsDisposed)) { advSensorForm = new AdvancedSensorForm(); advSensorForm.Show(); advSensorForm.SetSensorCount(ifKit.sensors.Count); for (int i = 0; i < ifKit.sensors.Count; i++) { advSensorForm.SetValue(i, Convert.ToInt32(sensorInArray[i].Text)); } } advSensorForm.Focus(); }
private void button1_Click(object sender, EventArgs e) { if ((advSensorForm == null) || (advSensorForm.IsDisposed)) { advSensorForm = new AdvancedSensorForm(); advSensorForm.Show(); advSensorForm.SetSensorCount(ifKit.sensors.Count); for (int i = 0; i < ifKit.sensors.Count; i++) { advSensorForm.SetValue(i, Convert.ToInt32(sensorInArray[i].Text)); } } advSensorForm.Focus(); }