//private async void Onlogoutclicked(object sender, EventArgs e) //{ // await Navigation.PopModalAsync(); //} //private void ToolbarItem_Clicked(object sender, EventArgs e) //{ // DisplayAlert("Message","Under Construction","ok"); //} async Task CompleteItem(TodoItem item) { item.Done = true; await manager.SaveTaskAsync(item); todoList.ItemsSource = await manager.GetTodoItemsAsync(); }
private async void AddItem(object data) { var newItem = new TodoItem(); newItem.Name = NewItemText; await manager.SaveTaskAsync(newItem); await LoadItems(); NewItemText = ""; }
// Data methods async Task AddItem(TodoItem item) { await manager.SaveTaskAsync(item); //todoList.ItemsSource = await manager.GetTodoItemsAsync(); }