Exemple #1
0
 private void OnMoveToDoCommand(Card card)
 {
     if (!TodoItems.Contains(card))
     {
         DoingItems.Remove(card);
         CompletedItems.Remove(card);
         TodoItems.Add(card);
     }
     _cardsManager.Save(TodoItems, DoingItems, CompletedItems);
 }
Exemple #2
0
        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);
        }