Esempio n. 1
0
        public HomeManagerNavigationViewModel(IAsyncEventAggregator eventAggregator)
        {
            eventAggregator.NullGuard();

            _eventAggregator = eventAggregator;

            NavigateCommand = AsyncCommandBuilder.Create(NavigateCalled);
        }
Esempio n. 2
0
        public BooksNavigationViewModel(IAsyncEventAggregator eventAggregator)
        {
            eventAggregator.NullGuard();

            _eventAggregator = eventAggregator;

            NavigateToWorkspaceCommand = AsyncCommandBuilder.Create(NavigateCalled);
        }
Esempio n. 3
0
        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);
        }