private void kaydıSilToolStripMenuItem_Click(object sender, EventArgs e) { PersonelBLL.DeleteEmployee((int)dgw_PersonelListesi.SelectedRows[0].Cells[0].Value); dgw_PersonelListesi.DataSource = PersonelBLL.GetEmployees(); MessageBox.Show("Personel Silindi!"); }
private void PersonelListesi_Form_Load(object sender, EventArgs e) { dgw_PersonelListesi.DataSource = PersonelBLL.GetEmployees(); }