Beispiel #1
0
 public MainWindow(
     IAccountRepository accountRepository,
     IFirstRunService firstRunService)
 {
     InitializeComponent();
     DataContext = new MainWindowViewModel(accountRepository, firstRunService);
 }
Beispiel #2
0
 public Handbook(
     IKekRepository kekRepository,
     IFirstRunService firstRunService)
 {
     InitializeComponent();
     DataContext = new HandbookViewModel(kekRepository, firstRunService);
 }
Beispiel #3
0
        public MainWindowViewModel(
            IAccountRepository accountRepository,
            IFirstRunService firstRunService)
        {
            _accountRepository = accountRepository;
            _firstRunService   = firstRunService;

            WindowLoadedCommand = new RelayCommand(OnFirstRun);
            LoadListCommand     = new RelayCommand(FillListView, CanLoadList);
        }
Beispiel #4
0
        public MainPageViewModel(
            INavigationService navigationService,
            ICardStorageService cardStorageService,
            CardsBrowseViewModel cardsBrowseViewModel,
            IFirstRunService firstRunService)
        {
            this.firstRunService    = firstRunService;
            this.cardStorageService = cardStorageService;
            this.navigationService  = navigationService;

            cardsBrowseViewModel.MaxCardCountToDisplay = 10;
            this.CardsBrowseViewModel = cardsBrowseViewModel;
        }