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; } } }
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; } } }