Ejemplo n.º 1
0
 private void removeButton_Click(object sender, EventArgs e)
 {
     try
     {
         NewWordsDataSet.WordsRow wordsRow = newWordsDataSet.Words.FindByWord(deleteWord.Text);
         wordsRow.Delete();
         MessageBox.Show("Deleted Row!");
     }
     catch (Exception error)
     {
         MessageBox.Show("An Error has occured " + error);
     }
 }
Ejemplo n.º 2
0
 public void DeleteEntry(string word)
 {
     try
     {
         NewWordsDataSet.WordsRow wordsRow = nwDataSet.Words.FindByWord(word.ToLower());
         wordsRow.Delete();
         MessageBox.Show("Deleted entry!");
     }
     catch (Exception error)
     {
         MessageBox.Show("An error occured: " + error);
     }
 }