/// <summary> /// Raises the LogMessageSelectedEvent event. /// </summary> /// <param name="e">The <see cref="LogMessageSelectedEventArgs"/> that may contain necessary information.</param> private void OnRaiseLogMessageSelectedEvent(LogMessageSelectedEventArgs e) { EventHandler <LogMessageSelectedEventArgs> handler = OnLogMessageSelected; if (handler != null) { handler(this, e); } }
/// <summary> /// Handles the OnMessageSelected event of the <see cref="LogMessage"/> window. /// </summary> private void OnLogMessageSelected(object sender, LogMessageSelectedEventArgs e) { if (mMessageDetails != null) { ((ILogPresenter)mMessageDetails).SelectLogMessage(e.Message); } if (mBookmarks != null) { ((ILogPresenter)mBookmarks).SelectLogMessage(e.Message); } if (mFilter != null) { ((ILogPresenter)mFilter).SelectLogMessage(e.Message); } tsbToggleBookmark.Enabled = e.Message != null; }
/// <summary> /// Raises the LogMessageSelectedEvent event. /// </summary> /// <param name="e">The <see cref="LogMessageSelectedEventArgs"/> that may contain necessary information.</param> private void OnRaiseLogMessageSelectedEvent(LogMessageSelectedEventArgs e) { OnLogMessageSelected?.Invoke(this, e); }