private void deviceInterfaceToolStripMenuItem_Click(object sender, EventArgs e) { if (m_clsBackThread.IsBusy == true) { MessageBox.Show("Error: It's busy. Please finish or cancel update progress to return to AP Mode.", "Configuration - Busy", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } //Open dialog using (DeviceInterface frm = new DeviceInterface(m_clsInterface, dlgControlItem)) { if (frm.ShowDialog() == DialogResult.OK) { return; } } }
private void deviceInterfaceToolStripMenuItem_Click(object sender, EventArgs e) { if (m_clsBackThread.IsBusy == true) { MessageBox.Show("Error: It's busy. Please finish or cancel update progress to return to AP Mode.", "Configuration - Busy", MessageBoxButtons.OK, MessageBoxIcon.Warning ); return; } //Open dialog using ( DeviceInterface frm = new DeviceInterface( m_clsInterface, dlgControlItem ) ) { if (frm.ShowDialog() == DialogResult.OK) { return; } } }