Esempio n. 1
0
 public AddNewReminderViewModel(ReminderItemDatabase database, MainPageViewModel parent, INavigationService navigationService, IPageDialogService dialogService)
 {
     _database          = database;
     _parent            = parent;
     _navigationService = navigationService;
     _dialogService     = dialogService;
     AddTaskCommand     = new DelegateCommand(AddTask);
     Message            = "Add you message here";
 }
Esempio n. 2
0
        public MainPageViewModel(INavigationService navigationService, ReminderItemDatabase database, IPageDialogService pageDialogService)
        {
            _pageDialogService         = pageDialogService;
            _navigationService         = navigationService;
            NavigateToSpeakPageCommand = new DelegateCommand(NavigateToSpeakPage);
            TappedCommand         = new DelegateCommand(Tapped);
            AddCommand            = new DelegateCommand(Add);
            ListItemTappedCommand = new DelegateCommand <ReminderItemDB>(ListItemTapped);

            _database = database;


            GetListofReminders();
        }