Ejemplo n.º 1
0
 private void DeleteWineSortButton_Click(object sender, EventArgs e)
 {
     var selectedRows = WineSortTable.SelectedRows;
     foreach (DataGridViewRow row in selectedRows)
     {
         int id = Convert.ToInt32(row.Cells[0].Value);
         WineSortManager.DeleteData(id);
         WineSortCategory local = SortCategoryList.Find(x => x.Id == id);
         SortCategoryList.Remove(local);
     }
     UpdateWineSortTable();
 }