/*按键单击事件,弹出串口配置对话框*/ private void btn_SerConfiure_Click(object sender, EventArgs e) { SerialConfig sc = new SerialConfig(this); sc.StartPosition = FormStartPosition.Manual; sc.Location = new Point(this.Location.X + 250, this.Location.Y + 150); sc.ShowDialog(); }
private void 串口配置ToolStripMenuItem_Click(object sender, EventArgs e) { SerialConfig sc = new SerialConfig(this); sc.StartPosition = FormStartPosition.Manual; sc.Location = new Point(this.Location.X + 250, this.Location.Y + 150); sc.ShowDialog(); }