private void frmCommOpenToolFilterHelper(object sender, EventArgs e, frmCommMessageFilter f, string inTitle, string inFilter, bool enableMessageFilterInput) { if (base.IsDisposed) { MessageBox.Show("COM window not initialized!", "Information"); return; } if (this.comm.RxCurrentTransmissionType == CommunicationManager.TransmissionType.Text) { MessageBox.Show("Filter not supported in this mode", "Information", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return; } string str = this.comm.sourceDeviceName + inTitle; if ((f == null) || f.IsDisposed) { f = new frmCommMessageFilter(); f.Show(); string str2 = inTitle; if (str2 == null) { goto Label_008B; } if (!(str2 == ": Debug View")) { if (str2 == ": Response View") { this._messageFilterResponse = f; goto Label_0092; } goto Label_008B; } this._messageFilterDebug = f; } goto Label_0092; Label_008B: this._messageFilterCustom = f; Label_0092: f.CommWindow = this.comm; f.Text = str; f.SetMessageFilter(inFilter); f.updateMainWindow += new frmCommMessageFilter.updateParentEventHandler(this.updateSubWindowState); f.SetMessageFilterTextState(enableMessageFilterInput); if (inFilter != "") { f.StartListeners(); } }
private void frmFileReplayToolFilter_Click(object sender, EventArgs e) { if (!base.IsDisposed) { string str = "File Playback Message Filter"; if ((this._messageFilter == null) || this._messageFilter.IsDisposed) { this._messageFilter = new frmCommMessageFilter(); } this._messageFilter.CommWindow = this.comm; this._messageFilter.Text = str; this._messageFilter.Show(); this._messageFilter.BringToFront(); } else { MessageBox.Show("File Playback not initialized", "Information"); } }
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; } }