private void btnNhaCungCap_Click(object sender, EventArgs e) { frmNhaCC ds = new frmNhaCC(); this.Hide(); // đóng form cũ lại ds.Show(); }
private void btnNhaCC_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form frmNCC = this.KiemTraTonTai(typeof(frmNhaCC)); if (frmNCC != null) { frmNCC.Activate(); } else { frmNhaCC fncc = new frmNhaCC(); fncc.MdiParent = this; fncc.Show(); } }