Exemplo n.º 1
0
 public TodoListViewModel()
 {
     manager         = TodoItemManager.DefaultManager;
     Items           = new ObservableCollection <TodoItem>();
     AddCommand      = new Command(async() => await AddAsync());
     CompleteCommand = new Command <TodoItem>(async(item) => await CompleteAsync(item));
     SyncCommand     = new Command(async() => await RefreshAsync(true));
     RefreshCommand  = new Command(async() => await RefreshAsync(false));
 }
Exemplo n.º 2
0
 public TodoItemManager()
 {
     defaultManager = this;
 }
Exemplo n.º 3
0
        public TodoList()
        {
            InitializeComponent();

            manager = TodoItemManager.DefaultManager;
        }
Exemplo n.º 4
0
        public TodoList()
        {
            InitializeComponent();

            manager = TodoItemManager.DefaultManager;
        }