/// <summary> /// Event handler for the 'Show Definition' context menu. Show the help information associated with the event. /// </summary> /// <param name="sender">Reference to the object that raised the event.</param> /// <param name="e">Parameter passed from the object that raised the event.</param> private void m_MenuItemShowDefinition_Click(object sender, EventArgs e) { // Skip, if the Dispose() method has been called. if (IsDisposed) { return; } Cursor = Cursors.WaitCursor; EventStatus_t eventStatus; DataGridViewRow dataGridViewRow; if (GetEventStatusElement(out eventStatus, out dataGridViewRow) == true) { // Get the help index associated with the event index. int helpIndex; try { helpIndex = Lookup.EventTable.RecordList[eventStatus.Identifier].HelpIndex; } catch (Exception) { helpIndex = CommonConstants.NotDefined; } if (helpIndex != CommonConstants.NotDefined) { WinHlp32.ShowPopup(this.Handle.ToInt32(), helpIndex); } } Cursor = Cursors.Default; }
/// <summary> /// Show the watch variable definition using the Windows help pop-up. /// </summary> protected void ShowHelpPopup() { // Skip if the Dispose() method has been called. if (IsDisposed) { return; } // Skip, if the Dispose() method has been called. if (IsDisposed) { return; } // Get the help index associated with the watch variable. int helpIndex; try { helpIndex = Lookup.WatchVariableTableByOldIdentifier.Items[Identifier].HelpIndex; } catch (Exception) { helpIndex = CommonConstants.NotFound; } // If the help index exists, show the help topic associated with the index. if (helpIndex != CommonConstants.NotFound) { WinHlp32.ShowPopup(this.Handle.ToInt32(), helpIndex); } }
/// <summary> /// Show the event variable definition using the Windows help pop-up. /// </summary> protected void ShowHelpPopup() { // Skip, if the Dispose() method has been called. if (IsDisposed) { return; } // Get the help index associated with the event variable. int helpIndex = Lookup.SelfTestVariableTable.Items[Identifier].HelpIndex; // If the help index exists, show the help topic associated with the index. if (helpIndex != CommonConstants.NotFound) { WinHlp32.ShowPopup(this.Handle.ToInt32(), helpIndex); } }