Esempio n. 1
0
        private void Frm_Main_Shown(object sender, EventArgs e)
        {
            Form frm = this.CheckExists(typeof(Frm_DangNhap));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                Frm_DangNhap f = new Frm_DangNhap();
                f.MdiParent = this;
                f.Show();
            }
        }
Esempio n. 2
0
        private void btnDangNhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = this.CheckExists(typeof(Frm_DangNhap));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                Frm_DangNhap f = new Frm_DangNhap();
                f.MdiParent = this;
                f.Show();
            }
        }