Пример #1
0
        /// <summary>
        /// Initializes a new instance of the GameViewModel class
        /// </summary>
        /// <param name="navigationService"></param>
        /// <param name="dialogService"></param>
        public GameViewModel(GalaSoft.MvvmLight.Views.INavigationService navigationService, IDialogService dialogService)
        {
            Debug.WriteLine("GameViewModel.constructor");

            _dialogService     = dialogService;
            _navigationService = navigationService;

            dispatcherTime          = new DispatcherTimer();
            dispatcherTime.Interval = TimeSpan.FromSeconds(TIME_INTERVAL_SECOND);
            dispatcherTime.Tick    += dispatcherTimeTick;

            MessengerInstance.Register <NotificationMessageAction>(this, finishGame);
        }
Пример #2
0
 public MainViewModel(ICatalogueService catalogueService, INavigationService navigationService)
     : base(catalogueService, navigationService)
 {
     Initialisation();
 }