Beispiel #1
0
        private void addToolStripButton_Click(object sender, EventArgs e)
        {
            EditEventLogEntry editEventLogEntry = new EditEventLogEntry();

            if (editEventLogEntry.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                SelectedEventLogConfig.Entries.Add(editEventLogEntry.SelectedEventLogEntry);
                LoadList();
            }
        }
Beispiel #2
0
 private void editToolStripButton_Click(object sender, EventArgs e)
 {
     if (lvwEntries.SelectedItems.Count > 0)
     {
         EditEventLogEntry editEventLogEntry = new EditEventLogEntry();
         editEventLogEntry.SelectedEventLogEntry = (QMEventLogEntry)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();
         }
     }
 }