private void btAdd_Click(object sender, EventArgs e) { DetailDH a = new DetailDH(0); a.d += new DetailDH.mydel(ShowAllHDViews); a.Show(); }
private void btEdit_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { int IDHD = (int)dataGridView1.SelectedRows[0].Cells["mahopdong"].Value; DetailDH a = new DetailDH(IDHD); a.d += new DetailDH.mydel(ShowAllHDViews); a.Show(); } }