private void btnInput_Click(object sender, EventArgs e) { CustomerUC cuc = new CustomerUC(); cuc.Parent = this; cuc.Show(); cuc.BringToFront(); }
private void btnCustomerUC_Click(object sender, EventArgs e) { this.Text = "Khách Hàng"; pnAdmin.Controls.Clear(); CustomerUC customerUc = new CustomerUC(); customerUc.Dock = DockStyle.Fill; pnAdmin.Controls.Add(customerUc); }