Esempio n. 1
0
 private void DeleteCountryButton_Click(object sender, EventArgs e)
 {
     var selectedRows = CountryTable.SelectedRows;
     foreach (DataGridViewRow row in selectedRows)
     {
         int id = Convert.ToInt32(row.Cells[0].Value);
         CountryManager.DeleteData(id);
         OriginCountry local = CountryList.Find(x => x.Id == id);
         CountryList.Remove(local);
     }
     UpdateOriginCountryTable();
 }