Ejemplo n.º 1
0
 private void frmStartupTime_Disposed(object sender, EventArgs e)
 {
     frmStartupTime = (RxTxStartupTimeForm)null;
 }
Ejemplo n.º 2
0
 private void startuptimeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (startuptimeToolStripMenuItem.Checked || tsBtnStartupTime.Checked)
     {
         startuptimeToolStripMenuItem.Checked = false;
         tsBtnStartupTime.Checked = false;
         if (frmStartupTime == null)
             return;
         frmStartupTime.Hide();
     }
     else
     {
         startuptimeToolStripMenuItem.Checked = true;
         tsBtnStartupTime.Checked = true;
         if (frmStartupTime == null)
         {
             frmStartupTime = new RxTxStartupTimeForm();
             frmStartupTime.FormClosed += new FormClosedEventHandler(frmStartupTime_FormClosed);
             frmStartupTime.Disposed += new EventHandler(frmStartupTime_Disposed);
             frmStartupTime.Device = device;
             frmStartupTime.AppSettings = appSettings;
         }
         frmStartupTime.Show();
     }
 }