Example #1
0
        private void btnTacGia_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = this.KiemTraTonTai(typeof(frmTacGia));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmTacGia f = new frmTacGia
                {
                    MdiParent = this
                };
                f.Show();
            }
        }
        private void btnTacGia_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = this.KiemTraTonTai(typeof(frmTacGia));

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