Exemple #1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            this.pagerGrid.PageChanged += new EventHandler(pagerGrid_PageChanged);

            Splasher.Status = "数据初始化完毕....";

            Thread.Sleep(1000);
            Splasher.Status = "用户验证通过,正在进入系统....";

            Splasher.Close();

            this.pagerGrid.GridPageInfo.RecordCount = 2592;
            BindData();
        }
Exemple #2
0
        static void Main()
        {
            GlobalMutex();

            //界面汉化
            System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN");
            DevExpress.UserSkins.BonusSkins.Register();
            DevExpress.Skins.SkinManager.EnableFormSkins();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            frmLogin login = new frmLogin();

            if (login.ShowDialog() == DialogResult.OK)
            {
                Splasher.Show(typeof(frmSplash));

                frmMain main = new frmMain();
                main.StartPosition = FormStartPosition.CenterScreen;
                Application.Run(main);
            }
        }