Exemple #1
0
 private void RiseControl()
 {
     SearchCommand?.RiseCanExecute();
     ClearCommand?.RiseCanExecute();
     CatalogNavigateViewModel.FirstCommand.RiseCanExecute();
     CatalogNavigateViewModel.PreviousCommand.RiseCanExecute();
     CatalogNavigateViewModel.NextCommand.RiseCanExecute();
     CatalogNavigateViewModel.LastCommand.RiseCanExecute();
     SetEnabled(!HasError.Value);
     Messenger?.Send(CommandName.EnableMenu, new EnableMenuEventArgs(!HasError.Value));
 }
Exemple #2
0
 private void ActionAfterLoadCatalog(Exception e, object needToUpdate)
 {
     if ((bool)needToUpdate)
     {
         Application.Current.Dispatcher.Invoke(
             () =>
         {
             SearchCriteria?.SearchComplited();
             SearchCommand?.RiseCanExecute();
             ClearCommand?.RiseCanExecute();
             CatalogNavigateViewModel.FirstCommand.RiseCanExecute();
             CatalogNavigateViewModel.PreviousCommand.RiseCanExecute();
             CatalogNavigateViewModel.NextCommand.RiseCanExecute();
             CatalogNavigateViewModel.LastCommand.RiseCanExecute();
             OnPropertyChanged(nameof(Entities));
             OnPropertyChanged(nameof(SelectedItem));
             RefreshCatalogView();
         });
     }
 }
Exemple #3
0
 private void OnCanDoSearchChanged(object sender, EventArgs e)
 {
     SearchCommand?.RiseCanExecute();
 }