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