Пример #1
0
        private void Filters_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new FiltersWindow();

            dlg.Owner = this;
            dlg.ShowDialog();
        }
Пример #2
0
 public Context(FiltersWindow window)
 {
     _window = window;
     _window.LV.SelectionChanged += (sender, e) =>
     {
         OnPropertyChanged(nameof(ModifyEnabled));
         OnPropertyChanged(nameof(RemoveEnabled));
     };
     Filters = new ObservableCollection <Filter>();
     Filters.AddRange(App.Current.Settings.Filters);
     DisableAll = App.Current.Settings.DisableAllFilters;
 }