示例#1
0
 protected override void OnClosed(EventArgs e)
 {
     m_SChildform = null;
 }
示例#2
0
 public frmRXInit_cmd CreateResetWindow()
 {
     if (!base.IsDisposed)
     {
         if (this.comm.TTBPort.IsOpen && (this._ttbWin != null))
         {
             this._ttbWin.Close();
         }
         string str = this.comm.sourceDeviceName + ": Reset";
         if ((this._resetCmd == null) || this._resetCmd.IsDisposed)
         {
             this._resetCmd = new frmRXInit_cmd();
         }
         this._resetCmd.CommWindow = this.comm;
         this._resetCmd.Text = str;
         if (this._resetCmd.ShowDialog() != DialogResult.Cancel)
         {
             System.Timers.Timer timer = new System.Timers.Timer();
             timer.Elapsed += new ElapsedEventHandler(this.clearGUIDataTimerHandler);
             timer.Interval = 1000.0;
             timer.AutoReset = false;
             timer.Start();
             this.comm.dataGui.AGC_Gain = 0;
             if ((this.comm.ProductFamily == CommonClass.ProductType.GSD4e) && (this.comm.RxCtrl.ResetCtrl.ResetType == "FACTORY"))
             {
                 this.setNMEARxMenuStatus();
             }
         }
         if (this._ttffDisplay != null)
         {
             this._ttffDisplay.SetTTFFMsgIndication();
         }
     }
     else
     {
         MessageBox.Show("COM window not initialized!", "Information");
     }
     return this._resetCmd;
 }
示例#3
0
 public static frmRXInit_cmd GetChildInstance()
 {
     if (m_SChildform == null)
     {
         m_SChildform = new frmRXInit_cmd();
     }
     return m_SChildform;
 }