Example #1
0
 private void butDelete_Click(object sender, System.EventArgs e)
 {
     if (tbProvIdent.SelectedRow == -1)
     {
         MessageBox.Show(Lan.g(this, "Please select an item first."));
         return;
     }
     if (MessageBox.Show(Lan.g(this, "Delete the selected Provider Identifier?"), "",
                         MessageBoxButtons.OKCancel) != DialogResult.OK)
     {
         return;
     }
     ProviderIdents.Delete(ListProvIdent[tbProvIdent.SelectedRow]);
     FillProvIdent();
 }