Пример #1
0
        /// <summary>
        /// 集中验证
        /// </summary>
        /// <returns></returns>
        public bool AuthLogin()
        {
            bool flag = false;

            int authflag = AuthUser();

            //authflag = 100;
            if (authflag == 100)
            {
                StartUpForm startUp = new StartUpForm();
                this.Hide();
                startUp.Show();
            }
            else
            {
                if (authflag == -10)
                {
                    lab_authmsg.Text = "数据库服务启动失败,请先启动数据库服务";
                }
                if (authflag == -11)
                {
                    lab_authmsg.Text = "远程鉴权失败,请联系客户经理";
                }
                btn_retry.Visible = true;
            }

            return(flag);
        }
Пример #2
0
        public HomeForm()
        {
            InitializeComponent();

            tChangeTime.Start();
            StartUp          = new StartUpForm();
            StartUp.TopLevel = false;
            StartUp.Dock     = DockStyle.Fill;
            panelParent.Controls.Add(StartUp);
            StartUp.Show();
            panelParent.AutoScroll = true;
        }