Example #1
0
        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;
            }

            if (DEV_MODE.AP != AskMode())
            {
                MessageBox.Show("Error: It's not in AP Mode. Please finish update progress to return to AP Mode.",
                                "Configuration - Error",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
                return;
            }


            //Open dialog
            using (DeviceInterface frm = new DeviceInterface(m_clsInterface, dlgControlItem))
            {
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    return;
                }
            }
        }
Example #2
0
        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;
            }

            if ( DEV_MODE.AP != AskMode() )
            {

                 MessageBox.Show("Error: It's not in AP Mode. Please finish update progress to return to AP Mode.",
                                 "Configuration - Error",
                                  MessageBoxButtons.OK,
                                  MessageBoxIcon.Error              );
                return;

            }

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