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

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

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