private void btn_add_Click(object sender, EventArgs e) { DetailGV f = new DetailGV(); f.setType(-1, ""); f.asyncData += show; f.ShowDialog(); show(getCoSoCurrent()); }
private void btn_edit_Click(object sender, EventArgs e) { DataGridViewRow dr = datagridview_dsGV.SelectedRows[0]; // get maGV int MaGV = Convert.ToInt32(dr.Cells["MaGV"].Value); // get MaCS string MaCoSo = dr.Cells["MaCoSo"].Value.ToString(); DetailGV f = new DetailGV(); f.setType(MaGV, MaCoSo); f.asyncData += show; f.ShowDialog(); show(getCoSoCurrent()); }