Esempio n. 1
0
        public TaskViewModel(INavigationService navigationService)
        {
            nozbeService = new NozbeService("*****@*****.**", "xxx");

            if (navigationService == null)
            {
                throw new ArgumentNullException("navigationService");
            }
            _navigationService = navigationService;

            ShowTasksCommand = new Command <string>(ShowTasks);
        }
Esempio n. 2
0
        public ProjectViewModel(INavigationService navigationService)
        {
            nozbeService = new NozbeService("*****@*****.**", "xxx");

            Projects = new NotifyTaskCompletion <List <Project> >(GetProjects());
            if (navigationService == null)
            {
                throw new ArgumentNullException("navigationService");
            }
            _navigationService = navigationService;

            ShowTasksCommand = new Command <string>(ShowTasks);
        }