public override void AddItem()
        {
            EventLogCollectorEditEntry editEventLogEntry = new EventLogCollectorEditEntry();

            if (editEventLogEntry.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                ListViewItem lvi = new ListViewItem(editEventLogEntry.SelectedEventLogEntry.ComputerLogName);
                lvi.SubItems.Add(editEventLogEntry.SelectedEventLogEntry.FilterSummary);
                lvi.SubItems.Add(editEventLogEntry.SelectedEventLogEntry.WarningValue.ToString());
                lvi.SubItems.Add(editEventLogEntry.SelectedEventLogEntry.ErrorValue.ToString());
                lvi.Tag = editEventLogEntry.SelectedEventLogEntry;
                lvwEntries.Items.Add(lvi);
            }
        }
 public override void EditItem()
 {
     if (lvwEntries.SelectedItems.Count > 0)
     {
         EventLogCollectorEditEntry editEventLogEntry = new EventLogCollectorEditEntry();
         editEventLogEntry.SelectedEventLogEntry = (EventLogCollectorEntry)lvwEntries.SelectedItems[0].Tag;
         if (editEventLogEntry.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             lvwEntries.SelectedItems[0].Text             = editEventLogEntry.SelectedEventLogEntry.ComputerLogName;
             lvwEntries.SelectedItems[0].SubItems[1].Text = editEventLogEntry.SelectedEventLogEntry.FilterSummary;
             lvwEntries.SelectedItems[0].SubItems[2].Text = editEventLogEntry.SelectedEventLogEntry.WarningValue.ToString();
             lvwEntries.SelectedItems[0].SubItems[3].Text = editEventLogEntry.SelectedEventLogEntry.ErrorValue.ToString();
             lvwEntries.SelectedItems[0].Tag = editEventLogEntry.SelectedEventLogEntry;
             CheckOKEnabled();
         }
     }
 }