Ejemplo n.º 1
0
 public DetailsPageViewModel(IDialogService dialogService, IAPIWrapper<Show> apiWrapper)
 {
     _dialogService = dialogService;
     _apiWrapper = apiWrapper;
     InitCommands();
     InitViewState();
     InitData();
 }
Ejemplo n.º 2
0
 public SearchPageViewModel(IAPIWrapper<Show> apiWrapper, IDialogService dialogService,
     IPageNavigationService navigationService)
 {
     _apiWrapper = apiWrapper;
     _dialogService = dialogService;
     _navigationService = navigationService;
     InitViewState();
     InitCollections();
     InitCommands();
 }
Ejemplo n.º 3
0
        public SearchCardViewModel(
            IDataService dataService,
            ICardImageService cardImageService,
            GalaSoft.MvvmLight.Views.IDialogService dialogService,
            INavigationService navigationService) : base(dialogService, navigationService)
        {
            this.Title       = "Search cards";
            DataService      = dataService ?? throw new ArgumentNullException(nameof(dataService));
            CardImageService = cardImageService ?? throw new ArgumentNullException(nameof(cardImageService));

            FoundCards = new ObservableCollection <Card>();
        }
Ejemplo n.º 4
0
 public DecksViewModel(IDataService dataService, GalaSoft.MvvmLight.Views.IDialogService dialogService, INavigationService navigationService) : base(dialogService, navigationService)
 {
     this.Title       = "Saved decks";
     this.DataService = dataService ?? throw new ArgumentNullException(nameof(dataService));
 }
Ejemplo n.º 5
0
 public RecordMatchViewModel(IProfileManager profileManager, GalaSoft.MvvmLight.Views.IDialogService dialogService) : base(profileManager)
 {
     _dialogService = dialogService;
     SaveCommand    = new RelayCommand(Save, () => CR.HasValue);
     SelectedMap    = Maps.First();
 }
Ejemplo n.º 6
0
 public BaseViewModel(GalaSoft.MvvmLight.Views.IDialogService dialogService, INavigationService navigationService)
 {
     this.DialogService     = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
     this.NavigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService));
 }
Ejemplo n.º 7
0
 public MainViewModel(GalaSoft.MvvmLight.Views.IDialogService dialogService, INavigationService navigationService) : base(dialogService, navigationService)
 {
     this.Title = "Home";
 }