Inheritance: System.Windows.Forms.Form
コード例 #1
0
        private void SetComPortToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Check status
            if (m_clsBackThread.IsBusy == true)
            {
                ControlItem(ENUM_ITEM_TYPE.MENU_SET_COM_PORT, false);
                return;
            }


            //Open dialog
            using (SetComport frm = new SetComport(m_clsInterface))
            {
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    return;
                }
            }
        }
コード例 #2
0
ファイル: UpdateFW.cs プロジェクト: mti-rfid/RFID_Explorer
        private void SetComPortToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Check status
            if (m_clsBackThread.IsBusy == true)
            {
                ControlItem(ENUM_ITEM_TYPE.MENU_SET_COM_PORT, false);
                return;
            }

            //Open dialog
            using ( SetComport frm = new SetComport(m_clsInterface) )
            {
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    return;
                }
            }
        }