private void navAccuracySetRefLocBtn_Click(object sender, EventArgs e) { try { frmSetReferenceLocation location = new frmSetReferenceLocation(); if (this.IsRealTime) { location.CommWindow = this.comm; } else { location.CommWindow = this.comm_forFile; } location.ShowDialog(); location.CommWindow.Dispose(); location.Dispose(); } catch (Exception exception) { MessageBox.Show(exception.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand); } }
private void setRefLocationBtn_Click(object sender, EventArgs e) { frmSetReferenceLocation location = new frmSetReferenceLocation(); location.CommWindow = this.comm; location.ShowDialog(); location.CommWindow.Dispose(); location.Dispose(); if (this._ttffDisplay != null) { this._ttffDisplay.SetReferenceLocation(); } }
private void toolStripButton_setRefLocation_Click(object sender, EventArgs e) { try { if (this.comm.IsSourceDeviceOpen()) { frmSetReferenceLocation location = new frmSetReferenceLocation(); location.CommWindow = this.comm; location.ShowDialog(); } else { MessageBox.Show("Port not open -- action failed", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand); } } catch (Exception exception) { MessageBox.Show(exception.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand); } }
private void setReferenceLocationToolStripMenuItem_Click(object sender, EventArgs e) { if ((toolStripPortComboBox.Text != string.Empty) && (PortManagerHash.Count > 0)) { try { PortManager manager = null; bool flag = false; if (toolStripPortComboBox.Text == "All") { clsGlobal.PerformOnAll = true; foreach (string str in PortManagerHash.Keys) { manager = (PortManager) PortManagerHash[str]; if (manager != null) { flag = true; break; } } } else { clsGlobal.PerformOnAll = false; manager = (PortManager) PortManagerHash[toolStripPortComboBox.Text]; flag = true; } if (flag && (manager != null)) { frmSetReferenceLocation location = new frmSetReferenceLocation(); location.CommWindow = manager.comm; location.ShowDialog(); } if (toolStripPortComboBox.Text == "All") { foreach (string str2 in PortManagerHash.Keys) { manager = (PortManager) PortManagerHash[str2]; if (((manager != null) && (manager._ttffDisplay != null)) && manager.TTFFDisplayLocation.IsOpen) { manager._ttffDisplay.SetReferenceLocation(); } } } else if (((manager != null) && (manager._ttffDisplay != null)) && manager.TTFFDisplayLocation.IsOpen) { manager._ttffDisplay.SetReferenceLocation(); } } catch { } } }