예제 #1
0
        /// <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);
              }
        }
예제 #2
0
        /// <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;
        }