Inheritance: System.Windows.Forms.Form
Exemple #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;
                }
            }
        }
Exemple #2
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;
                }
            }
        }