private void btnAddDocGia_Click(object sender, EventArgs e) { FormDuLieuDocGia f = new FormDuLieuDocGia(null); f.d = new FormDuLieuDocGia.Mydel(this.ShowDG); f.ShowDialog(); }
private void btnEditDocGia_Click(object sender, EventArgs e) { if (dataGridViewDocGia.SelectedRows.Count == 1) { FormDuLieuDocGia f = new FormDuLieuDocGia(dataGridViewDocGia.SelectedRows[0].Cells["MSSV"].Value.ToString()); f.d = new FormDuLieuDocGia.Mydel(this.ShowDG); f.ShowDialog(); } }