Пример #1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            int idLicence = 0;

            int.TryParse(_dgvLicense.Rows[_dgvLicense.SelectedCells[0].RowIndex].Cells[0].Value.ToString(), out idLicence);

            _licencesList.Delete(idLicence);

            loadData();
        }