public bool SelectEvent(LogFile.Entry entry)
        {
            bool b = SelectEventInternal(entry);

            eventGridView.FirstDisplayedScrollingRowIndex = eventGridView.SelectedRows[0].Index;
            return(b);
        }
 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
            });
        }