예제 #1
0
        private void lvMessages_DoubleClick(object sender, EventArgs e)
        {
            var msg = SelectedRecord;

            if (msg == null)
            {
                return;
            }
            LogMessageEventArgs ev = new LogMessageEventArgs
            {
                LogRecord = msg,
                Handled   = false
            };

            if (MessageDoubleClick != null)
            {
                MessageDoubleClick(sender, ev);
            }
            if (!ev.Handled)
            {
                ShowDetail(msg);
            }
        }
예제 #2
0
 void m_source_OnMessage(object sender, LogMessageEventArgs e)
 {
     try { Invoke((Action)(() => { AddLogMessage(e.LogRecord); })); }
     catch { }
 }