示例#1
0
 public static void Log(string LogName, string LogPassword, Form_log log)
 {
     if (ControCenter.LogIn(LogName, LogPassword))
     {
         log.Visible = false;
         ControCenter.LoadObjData();
         Form_main f = new Form_main();
     }
     else
     {
         MessageBox.Show("密码错误!");
     }
 }
示例#2
0
        public static void StartLog(Form init)//开始准备登陆,验证
        {
            ProjectForm = init;
            if (!DataService.VerifyConn())
            {
                MessageBox.Show("数据连接失败!");
                init.Close();
            }
            else
            {
                init.Visible = false;


                ControCenter.GetFeatureCode();

                //ControCenter.FeatureCode = "f**k";
                ControCenter.FirstUse = DataService.IsFirstUse();
                if (ControCenter.FirstUse)
                {
                    Form_FirstGuild guild = new Form_FirstGuild();
                }
                else
                {
                    ControCenter.VerifyUsingPermission();
                    if (ControCenter.remainDays >= 0)
                    {
                        Form_log Log = new Form_log();
                    }
                    else
                    {
                        MessageBox.Show("剩余时间不足,请充值以继续使用软件");
                        Form_purchase f = new Form_purchase();
                    }
                }
            }
        }