Exemplo n.º 1
0
        private void buttonProgram_Click(object sender, EventArgs e)
        {
            finalResults.Clear();
            try
            {
                Stopwatch time = new Stopwatch();
                time.Start();

                using (WaitingDialog frm = new WaitingDialog(ProgramDevice, DeviceChoiceEnum.PS3))
                {
                    frm.ShowDialog();
                }
                updateTextBox();
                time.Stop();
                MessageBox.Show("Total time for programming the devices: " + time.ElapsedMilliseconds.ToString() + "ms");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            finally
            {
                radioButtonSingleSiteEnable.Checked = false;
            }
        }
Exemplo n.º 2
0
 private void buttonConnectDevice_Click(object sender, EventArgs e)
 {
     try
     {
         using (WaitingDialog frm = new WaitingDialog(CheckDeviceConnection, DeviceChoiceEnum.PS3))
         {
             frm.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     finally
     {
         radioButtonSingleSiteEnable.Checked = false;
     }
 }