private void btnAddSP_Click(object sender, EventArgs e) { Unset(); pTHem.Visible = true; bunifuPages1.PageIndex = 1; Form_AddSanPham frm = new Form_AddSanPham(this) { TopMost = true, TopLevel = false }; this.Page_AddSP.Controls.Clear(); this.Page_AddSP.Controls.Add(frm); frm.Show(); }
public void callForm_Sua(Form_AddSanPham f) { this.pageDS.Controls.Clear(); this.pageDS.Controls.Add(f); f.Show(); }