private void butEditSerial_Click(object sender, EventArgs e) { Form dlg = new SerialEditor(ComPort); dlg.ShowDialog(); }