private void onEventLogCombo_SelectedIndexChanged(object sender, EventArgs e)
 {
     onEventSourceCombo.Items.Clear();
     onEventSourceCombo.Items.AddRange(SystemEventEnumerator.GetEventProviders(TargetServer, onEventLogCombo.Text));
     UpdateCustomText();
     OnTriggerChanged(new PropertyChangedEventArgs("Trigger"));
 }
예제 #2
0
 private void onEventLogCombo_SelectedIndexChanged(object sender, EventArgs e)
 {
     onEventSourceCombo.Items.Clear();
     if (onEventLogCombo.SelectedIndex != -1)
     {
         onEventSourceCombo.Items.AddRange(SystemEventEnumerator.GetEventProviders(TargetServer, (string)onEventLogCombo.SelectedValue).ToArray());
     }
     onEventSourceCombo.SelectedIndex = onEventSourceCombo.Items.Count > 0 ? 0 : -1;
     UpdateCustomText();
     OnTriggerChanged(new PropertyChangedEventArgs("Trigger"));
 }