Example #1
0
        internal void updateSubWindowState(string subWinName)
        {
            EventHandler method = null;
            EventHandler handler2 = null;
            EventHandler handler3 = null;
            EventHandler handler4 = null;
            EventHandler handler5 = null;
            EventHandler handler6 = null;
            switch (subWinName)
            {
                case "frmCommInputMessage":
                    this._inputCommands = null;
                    return;

                case "frmCommRadarMap":
                    this._signalMapPanel = null;
                    if (method == null)
                    {
                        method = delegate {
                            this.toolBarRadarBtn.CheckState = CheckState.Unchecked;
                        };
                    }
                    base.Invoke(method);
                    return;

                case "frmEncryCtrl":
                    this._encryCtrl = null;
                    return;

                case "frmSatelliteStats":
                    this._SatelliteStats = null;
                    return;

                case "frmCommLocationMap":
                    this._locationViewPanel = null;
                    if (handler2 == null)
                    {
                        handler2 = delegate {
                            this.toolBarLocationBtn.CheckState = CheckState.Unchecked;
                        };
                    }
                    base.Invoke(handler2);
                    return;

                case "frmCommSignalView":
                    this._signalStrengthPanel = null;
                    if (handler3 == null)
                    {
                        handler3 = delegate {
                            this.toolBarSignalViewBtn.CheckState = CheckState.Unchecked;
                        };
                    }
                    base.Invoke(handler3);
                    return;

                case "frmCommMessageFilter":
                    this._messageFilterCustom = null;
                    return;

                case "frmTTFFDisplay":
                    this._ttffDisplay = null;
                    if (handler4 == null)
                    {
                        handler4 = delegate {
                            this.toolBarTTFFBtn.CheckState = CheckState.Unchecked;
                        };
                    }
                    base.Invoke(handler4);
                    return;

                case "frmInterferenceReport":
                    this._interferenceReport = null;
                    return;

                case "frmSiRFAware":
                    this._SiRFAware = null;
                    return;

                case "frmCommResponseView":
                    this._responseView = null;
                    if (handler5 == null)
                    {
                        handler5 = delegate {
                            this.toolBarResponseViewBtn.CheckState = CheckState.Unchecked;
                        };
                    }
                    base.Invoke(handler5);
                    return;

                case "frmCommErrorView":
                    this._errorView = null;
                    if (handler6 == null)
                    {
                        handler6 = delegate {
                            this.toolBarErrorViewBtn.CheckState = CheckState.Unchecked;
                        };
                    }
                    base.Invoke(handler6);
                    return;
            }
        }
Example #2
0
 private void satelliteMapToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!base.IsDisposed)
     {
         string str = "File Playback SVs Map";
         if ((this._signalMapPanel == null) || this._signalMapPanel.IsDisposed)
         {
             this._signalMapPanel = new frmCommRadarMap();
         }
         this._signalMapPanel.CommWindow = this.comm;
         this._signalMapPanel.Text = str;
         this._signalMapPanel.Show();
         this._signalMapPanel.BringToFront();
     }
     else
     {
         MessageBox.Show("File Playback not initialized", "Information");
     }
 }
Example #3
0
 internal frmCommRadarMap CreateSVsMapWin()
 {
     EventHandler method = null;
     if (!base.IsDisposed)
     {
         if (method == null)
         {
             method = delegate {
                 if (this.toolBarRadarBtn.CheckState == CheckState.Indeterminate)
                 {
                     this.toolBarRadarBtn.CheckState = CheckState.Unchecked;
                     if ((this._signalMapPanel != null) && !this._signalMapPanel.IsDisposed)
                     {
                         this._signalMapPanel.Close();
                     }
                 }
                 else
                 {
                     string str = this.comm.sourceDeviceName + ": Radar View";
                     if ((this._signalMapPanel == null) || this._signalMapPanel.IsDisposed)
                     {
                         this._signalMapPanel = new frmCommRadarMap();
                         this._signalMapPanel.Show();
                     }
                     this._signalMapPanel.CommWindow = this.comm;
                     this._signalMapPanel.Text = str;
                     this._signalMapPanel.updateMainWindow += new frmCommRadarMap.updateParentEventHandler(this.updateSubWindowState);
                     this._signalMapPanel.BringToFront();
                     this.toolBarRadarBtn.CheckState = CheckState.Indeterminate;
                 }
             };
         }
         base.Invoke(method);
     }
     else
     {
         MessageBox.Show("COM window not initialized!", "Information");
     }
     return this._signalMapPanel;
 }