void OnToDoItemTapped(object sender, ItemTappedEventArgs e) { var item = ToDo [e.ItemIndex]; item.Completed = true; ToDo.Remove(item); ToDone.Add(item); }
void OnDoneItemTapped(object sender, ItemTappedEventArgs e) { var item = ToDone [e.ItemIndex]; item.Completed = false; ToDone.Remove(item); ToDo.Add(item); }
protected void OnDoneUnchecked(object sender, EventArgs args) { var item = FindAssociatedToDoItem(sender as Element, ToDone); if (item != null) { item.Completed = false; ToDone.Remove(item); ToDo.Add(item); } }