private void btnAdd_Click(object sender, EventArgs e) { TTSV fTT = new TTSV(null); fTT.d = new TTSV.MyDel(this.Show); fTT.ShowDialog(); }
private void btnEdit_Click(object sender, EventArgs e) { DataGridViewSelectedRowCollection data = dtgvDSSV.SelectedRows; if (data.Count == 1) { string MSSV = data[0].Cells["MSSV"].Value.ToString(); TTSV fTT = new TTSV(MSSV); fTT.d = new TTSV.MyDel(this.Show); fTT.ShowDialog(); } }