Exemplo n.º 1
0
        private void ETWProviders_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new EtwProvidersWindow();

            dlg.Owner = this;
            dlg.ShowDialog();
            UpdateEtwEvents();
        }
Exemplo n.º 2
0
 public Context(EtwProvidersWindow window)
 {
     _window = window;
     _window.LV.SelectionChanged += (sender, e) =>
     {
         OnPropertyChanged(nameof(ModifyEnabled));
         OnPropertyChanged(nameof(RemoveEnabled));
     };
     Providers = new ObservableCollection <EtwProvider>();
     Providers.AddRange(App.Current.Settings.EtwProviders);
 }