Exemplo n.º 1
0
        private void btnNhaCungCap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = CheckForm(typeof(NCC));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                NCC fr = new NCC(); fr.MdiParent = this;
                fr.Show();
            }
        }
Exemplo n.º 2
0
        private void btnThemNCCMoi_Click(object sender, EventArgs e)
        {
            foreach (Form formCon in this.MdiParent.MdiChildren)
            {
                if (formCon.Name == "NCC")
                {
                    formCon.Activate();
                    return;
                }
            }
            NCC moNCC = new NCC();

            moNCC.MdiParent = this.ParentForm;
            moNCC.Show();
        }