public HomeManagerNavigationViewModel(IAsyncEventAggregator eventAggregator) { eventAggregator.NullGuard(); _eventAggregator = eventAggregator; NavigateCommand = AsyncCommandBuilder.Create(NavigateCalled); }
public BooksNavigationViewModel(IAsyncEventAggregator eventAggregator) { eventAggregator.NullGuard(); _eventAggregator = eventAggregator; NavigateToWorkspaceCommand = AsyncCommandBuilder.Create(NavigateCalled); }
public BooksWorkspaceViewModel(IJsonRepository <BookRecord> bookRepository, IJsonRepository <AuthorRecord> authorRepository, IJsonRepository <GenreRecord> genreRepository) { bookRepository.NullGuard(); authorRepository.NullGuard(); genreRepository.NullGuard(); _bookRepository = bookRepository; _authorRepository = authorRepository; _genreRepository = genreRepository; LoadedCommand = AsyncCommandBuilder.Create(LoadBooks); }