private void Filters_Click(object sender, RoutedEventArgs e) { var dlg = new FiltersWindow(); dlg.Owner = this; dlg.ShowDialog(); }
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; }