private void btn_thietbi_Click(object sender, EventArgs e) { frm_thietbiphong frm = new frm_thietbiphong(); frm.Maphong1 = txt_maphong.Text; frm.ShowDialog(); grv_thietbi.DataSource = bll_thietbi.loadhuhai(datphong.laymaphong(Ten)); }
private void btn_thietbi_phong_ItemClick(object sender, ItemClickEventArgs e) { frm_thietbiphong frm = new frm_thietbiphong(); frm.TopLevel = false; pnl_main.Controls.Clear(); pnl_main.Controls.Add(frm); frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; frm.Dock = DockStyle.Fill; frm.Show(); }