コード例 #1
0
        private void btnTheLoai_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = this.KiemTraTonTai(typeof(frmTheLoai));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmTheLoai f = new frmTheLoai
                {
                    MdiParent = this
                };
                f.Show();
            }
        }
コード例 #2
0
        private void btnTheLoai_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = this.KiemTraTonTai(typeof(frmTheLoai));

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