public serialPortForm() { InitializeComponent(); formSerial = this; }
public serialPortForm(GlForm parent) { InitializeComponent(); this.parent = parent; formSerial = this; }
/// <summary> /// 打开串口设置窗体 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void serialBtn_Click(object sender, EventArgs e) { serialPortForm serialForm = new serialPortForm(glForm); serialForm.Show(); }