private void btnAdd_Click(object sender, EventArgs e) { //ctl.createHD(); //GUI_QLHD_Load(null, null); QLHD.GUI_CTHD ncc = new GUI_CTHD("Create", TK, ctl.createHD(lblPOS.Text, TK.MATK), POS); this.Hide(); ncc.ShowDialog(); this.Close(); }
private void button1_Click(object sender, EventArgs e) { string id = lstHD.SelectedRows[0].Cells[0].Value.ToString(); HOADON hd = db.HOADONs.Single(st => st.SOHD.Equals(id)); QLHD.GUI_CTHD ncc = new GUI_CTHD("Edit", TK, hd, POS); this.Hide(); ncc.ShowDialog(); this.Close(); //GUI_QLHD_Load(null, null); }