Ejemplo n.º 1
0
 private void frmRssiAnalyser_Disposed(object sender, EventArgs e)
 {
     frmRssiAnalyser = (RssiAnalyserForm)null;
 }
Ejemplo n.º 2
0
 private void rssiAnalyserToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (rssiAnalyserToolStripMenuItem.Checked)
     {
         if (frmRssiAnalyser != null)
             frmRssiAnalyser.Close();
         rssiAnalyserToolStripMenuItem.Checked = false;
     }
     else
     {
         if (frmSpectrumAnalyser != null)
             frmSpectrumAnalyser.Close();
         if (frmRssiAnalyser == null)
         {
             frmRssiAnalyser = new RssiAnalyserForm();
             frmRssiAnalyser.FormClosed += new FormClosedEventHandler(frmRssiAnalyser_FormClosed);
             frmRssiAnalyser.Disposed += new EventHandler(frmRssiAnalyser_Disposed);
             frmRssiAnalyser.Device = device;
             frmRssiAnalyser.AppSettings = appSettings;
         }
         frmRssiAnalyser.Show();
         rssiAnalyserToolStripMenuItem.Checked = true;
     }
 }