private void onEventLogCombo_SelectedIndexChanged(object sender, EventArgs e) { onEventSourceCombo.Items.Clear(); onEventSourceCombo.Items.AddRange(SystemEventEnumerator.GetEventProviders(TargetServer, onEventLogCombo.Text)); UpdateCustomText(); OnTriggerChanged(new PropertyChangedEventArgs("Trigger")); }
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")); }