Exemple #1
0
 public CompletedListViewModel(INavigationService navigationService, IToDoItemDomainManager toDoItemDomainManager)
     : base(navigationService)
 {
     Title = "Completed";
     _toDoItemDomainManager = toDoItemDomainManager;
     ToDoItems = new ObservableCollection <ToDoItem>();
 }
Exemple #2
0
 public EditToDoItemPageViewModel(INavigationService navigationService, IToDoItemDomainManager toDoItemDomainManager)
     : base(navigationService)
 {
     Title = "Edit ToDo";
     _toDoItemDomainManager = toDoItemDomainManager;
     SaveCommand            = new DelegateCommand(SaveToDoItem);
 }
Exemple #3
0
        public InProgressListViewModel(INavigationService navigationService, IToDoItemDomainManager toDoItemDomainManager)
            : base(navigationService)
        {
            Title = "ToDo";
            _toDoItemDomainManager = toDoItemDomainManager;
            ToDoItems = new ObservableCollection <ToDoItem>();

            AddItemCommand  = new DelegateCommand(NavigateToEditToDoItem);
            CompleteCommand = new DelegateCommand(Complete);
        }