コード例 #1
0
        //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();
        }
コード例 #2
0
        private async void AddItem(object data)
        {
            var newItem = new TodoItem();

            newItem.Name = NewItemText;

            await manager.SaveTaskAsync(newItem);

            await LoadItems();

            NewItemText = "";
        }
コード例 #3
0
 // Data methods
 async Task AddItem(TodoItem item)
 {
     await manager.SaveTaskAsync(item);
     //todoList.ItemsSource = await manager.GetTodoItemsAsync();
 }