Beispiel #1
0
        /// <summary>
        /// 菜单栏串口设置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void 串口配置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Portconfigure == null || Portconfigure.IsDisposed)
            {
                Portconfigure = new PortConfigure();
            }
            Portconfigure.ShowDialog();
            toolStripStatusLabel1.Text = "";

            if (Portconfigure.portName == "")
            {
                toolStripStatusLabel1.Text = "No COM Port Found!";
            }

            flg = true;
        }