コード例 #1
0
        private void btnNhaCungCap_Click(object sender, EventArgs e)
        {
            frmNhaCC ds = new frmNhaCC();

            this.Hide();            // đóng form cũ lại
            ds.Show();
        }
コード例 #2
0
        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();
            }
        }