private void dgvLisans_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { YeniLisansForm = new YENI_LISANS(Convert.ToInt32(dgvLisans.CurrentRow.Cells["LisansId"].Value), dgvLisans.CurrentRow.Cells["YAZILIM ADI"].Value.ToString(), dgvLisans.CurrentRow.Cells["TİP ADI"].Value.ToString(), dgvLisans.CurrentRow.Cells["LİSANS KEY"].Value.ToString(), dgvLisans.CurrentRow.Cells["LİSANS NO"].Value.ToString(), dgvLisans.CurrentRow.Cells["LİSANS ADI"].Value.ToString(), Convert.ToInt32(dgvLisans.CurrentRow.Cells["LİSANS SAYISI"].Value)); YeniLisansForm.ShowDialog(); dtLisans = Lisanslar.LisanslariGetir(0); dgvLisans.DataSource = dtLisans; btnLisansSil.Enabled = false; btnLisansAyrintiDuzenle.Enabled = false; }
////////////////////////////////////////////////////// ////////////////// LİSANS //////////////////////////// private void btnYeniLisans_Click(object sender, EventArgs e) { YeniLisansForm = new YENI_LISANS(0, "", "", "", "", "", 0); YeniLisansForm.ShowDialog(); dtLisans = Lisanslar.LisanslariGetir(0); dgvLisans.DataSource = dtLisans; btnLisansSil.Enabled = false; btnLisansAyrintiDuzenle.Enabled = false; }