Exemplo n.º 1
0
 /// <summary>
 /// Updates each element of our UI based on whether the deck has been created or not.
 /// </summary>
 private void UpdateUIStatus()
 {
     if (Deck.IsCreated)
     {
         DeckNameButton.Enable();
         CreateButton.Disable();
         EditButton.Enable();
         DeleteButton.Enable();
     }
     else
     {
         DeckNameButton.Disable();
         CreateButton.Enable();
         EditButton.Disable();
         DeleteButton.Disable();
     }
 }