Пример #1
0
        private void btnDocGia_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = this.KiemTraTonTai(typeof(frmDocGia));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmDocGia f = new frmDocGia
                {
                    MdiParent = this
                };
                f.Show();
            }
        }
Пример #2
0
        private void btnDocGia_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = this.KiemTraTonTai(typeof(frmDocGia));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                SplashScreenManager.ShowDefaultWaitForm();
                frmDocGia f = new frmDocGia
                {
                    MdiParent = this
                };
                f.Show();
                SplashScreenManager.CloseDefaultSplashScreen();
            }
        }