Пример #1
0
 public SearchVM()
 {
     _cts             = new CancellationTokenSource();
     _skApi           = new SkladchikApiClient(_cts.Token);
     StartCommand     = new RelayCommand(StartAsync);
     FiltersManagerVM = new FiltersManagerVM(FiltersManagerVM.TemporaryFiltersPath);
 }
Пример #2
0
        private void ShowFilters()
        {
            var tempFiltersVm = FiltersManagerVM.FiltersVM;

            FiltersManagerVM.SaveFilters(FiltersManagerVM.TemporaryFiltersPath);
            var filtersWindow = new FiltersWindow {
                VisibileIsLocalSearch = true, DataContext = this
            };

            if (filtersWindow.ShowDialog() != true)
            {
                FiltersManagerVM.FiltersVM      = tempFiltersVm;
                FiltersManagerVM.IsFilterSetted = false;
            }
        }