Example #1
0
 public frm_TTBTimeAidingCfg CreateTTBTimeAidCfgWindow()
 {
     if (!base.IsDisposed)
     {
         string str = "Configure Time Aiding";
         if ((this._TTBtimeAidCfg == null) || this._TTBtimeAidCfg.IsDisposed)
         {
             this._TTBtimeAidCfg = new frm_TTBTimeAidingCfg();
         }
         this._TTBtimeAidCfg.CommWindow = this.comm;
         this._TTBtimeAidCfg.Text = str;
         this._TTBtimeAidCfg.ShowDialog();
     }
     else
     {
         MessageBox.Show("COM window not initialized!", "Information");
     }
     return this._TTBtimeAidCfg;
 }
Example #2
0
 public frm_TTBTimeAidingCfg CreateTTBTimeAidCfgWindow(PortManager target)
 {
     if (target == null)
     {
         return null;
     }
     frm_TTBTimeAidingCfg cfg = null;
     if (target.comm.IsSourceDeviceOpen())
     {
         string str = "Configure Time Aiding: " + target.comm.PortName;
         cfg = new frm_TTBTimeAidingCfg();
         cfg.CommWindow = target.comm;
         cfg.Text = str;
         cfg.ShowDialog();
         return cfg;
     }
     MessageBox.Show("Port not initialized!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     return cfg;
 }