コード例 #1
0
        public bool SelectEvent(LogFile.Entry entry)
        {
            bool b = SelectEventInternal(entry);

            eventGridView.FirstDisplayedScrollingRowIndex = eventGridView.SelectedRows[0].Index;
            return(b);
        }
コード例 #2
0
 private bool SelectEventInternal(LogFile.Entry entry)
 {
     foreach (DataGridViewRow row in eventGridView.Rows)
     {
         if (entry.Equals(row.Tag))
         {
             row.Selected = true;
             return(true);
         }
     }
     return(false);
 }
コード例 #3
0
        private void ParseLogDataReceived(object sender, DataReceivedEventArgs args)
        {
            string line = args.Data;

            if (String.IsNullOrEmpty(line))
            {
                return;
            }

            // TODO: Catch exceptions when parsing, although they should never occur
            LogFile.Entry entry = LogFile.ParseEntry(line);
            LogEntryParsed(this, new LogEntryEventArgs()
            {
                Entry = entry
            });
        }