Ejemplo n.º 1
0
        /// <summary>
        /// Raises the <see cref="E:System.Windows.Forms.Control.MouseDown" /> event.
        /// </summary>
        /// <param name="e">A <see cref="T:System.Windows.Forms.MouseEventArgs" /> that contains the event data. </param>
        protected override void OnMouseDown(MouseEventArgs e)
        {
            base.OnMouseDown(e);

            if (mLogPresenter != null)
            {
                if (mColoredLines.ContainsKey(e.Y) && (mColoredLines[e.Y].Level & (LogLevel)Settings.Default.ColorMapAnnotation) == mColoredLines[e.Y].Level)
                {
                    mLogPresenter.SelectLogMessage(mColoredLines[e.Y]);
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Selects the given <paramref name="message"/>.
 /// </summary>
 /// <param name="message">The <see cref="LogMessage"/> o select</param>
 public bool SelectLogMessage(LogMessage message)
 {
     return(mPresenter != null && mPresenter.SelectLogMessage(message));
 }