private void OnMoveToDoCommand(Card card) { if (!TodoItems.Contains(card)) { DoingItems.Remove(card); CompletedItems.Remove(card); TodoItems.Add(card); } _cardsManager.Save(TodoItems, DoingItems, CompletedItems); }
private void OnMoveToPriorCommand(Card card) { if (!TodoItems.Contains(card)) { if (DoingItems.Contains(card)) { DoingItems.Remove(card); TodoItems.Add(card); } else if (CompletedItems.Contains(card)) { CompletedItems.Remove(card); DoingItems.Add(card); } } _cardsManager.Save(TodoItems, DoingItems, CompletedItems); }