Ejemplo n.º 1
0
 void deleteCard(dsLanguageData.CardRow card)
 {
     LanguageData dataLayer = new LanguageData();
     dataLayer.DeleteCard(card.ID);
     ClearCard();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deletes the current card. And clears the data from the screen.
 /// </summary>
 public void DeleteCard()
 {
     if (_curCard != null && _curCard.ID > 0)
     {
         int id = _curCard.ID;
         LanguageData dataLayer = new LanguageData();
         if (dataLayer.DeleteCard(_curCard.ID) > 0)
         {
             if (CardWasDeleted != null)
                 CardWasDeleted(this, id);
         }
     }
     ClearCard();
 }