Esempio n. 1
0
 private void frmRegisters_Disposed(object sender, EventArgs e)
 {
     frmRegisters = (RegistersForm)null;
 }
Esempio n. 2
0
 private void showRegistersToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (showRegistersToolStripMenuItem.Checked || tsBtnShowRegisters.Checked)
     {
         showRegistersToolStripMenuItem.Checked = false;
         tsBtnShowRegisters.Checked = false;
         if (frmRegisters != null)
             frmRegisters.Hide();
         if (frmSpectrumAnalyser == null && !device.IsPacketHandlerStarted)
             return;
         frmRegisters.RegistersFormEnabled = true;
     }
     else
     {
         showRegistersToolStripMenuItem.Checked = true;
         tsBtnShowRegisters.Checked = true;
         if (frmRegisters == null)
         {
             frmRegisters = new RegistersForm();
             frmRegisters.FormClosed += new FormClosedEventHandler(frmRegisters_FormClosed);
             frmRegisters.Disposed += new EventHandler(frmRegisters_Disposed);
             frmRegisters.Device = device;
             frmRegisters.AppSettings = appSettings;
         }
         if (frmSpectrumAnalyser != null || device.IsPacketHandlerStarted)
             frmRegisters.RegistersFormEnabled = false;
         frmRegisters.Show();
     }
 }