コード例 #1
0
ファイル: FrmLogWindow.cs プロジェクト: NitefullWind/Logbert
        /// <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;
        }
コード例 #3
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)
 {
     OnLogMessageSelected?.Invoke(this, e);
 }