Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ThreadExceptionHandler handler = new ThreadExceptionHandler();
            Application.ThreadException += new ThreadExceptionEventHandler(handler.Application_ThreadException);
            AppSetting.SkinName = AppSetting.ConfigGetValue("SkinName");

            var app = new FrmTrail();
            if (app.Mutex != null)
            {
                //Hi.UserControlEx.UcSplash.ShowFrmSplashScreen();

                Hi.UserControlEx.UcSplash.SetStatus("正在启动主窗口...");
                Thread.Sleep(1000);

                Application.Run(app);
            }
            else
            {
                MsgBox.ShowInformation("已经有一个实例在运行!");
            }
        }
Beispiel #2
0
        /// <summary>
        /// 用户验证
        /// </summary>
        private void Login()
        {
            this.uclblMsg.Text = "请输入用户名及密码登录...";
            FrmLogin frm = new FrmLogin();

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.Cancel)
            {
                ExitApplication();
            }
            else
            {
                this.uclblMsg.Text = "就绪";
                InitThread();
            }

            FrmTrail frmttt = new FrmTrail();

            frmttt.Show();

            FrmDataAutoHand frmDataAuto = new FrmDataAutoHand();

            frmDataAuto.Show();
        }
Beispiel #3
0
        /// <summary>
        /// �û���֤
        /// </summary>
        private void Login()
        {
            this.uclblMsg.Text = "�������û����������¼...";
            FrmLogin frm = new FrmLogin();
            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.Cancel)
            {
                ExitApplication();
            }
            else
            {
                this.uclblMsg.Text = "����";
                InitThread();
            }

            FrmTrail frmttt = new FrmTrail();
            frmttt.Show();

            FrmDataAutoHand frmDataAuto = new FrmDataAutoHand();
            frmDataAuto.Show();
        }