Пример #1
0
        private void loginForm_Load(object sender, EventArgs e)
        {
            APP.Init();

            //首先加密狗验证读取加密狗信息
            APP.GoldSoftClient.FirstLogin();
            if (APP.GoldSoftClient.ClientResult.IsLoginSucess)
            {
                switch (APP.GoldSoftClient.ClientResult.Fun)
                {
                case 1:
                    myflash.Movie = AppDomain.CurrentDomain.BaseDirectory + "\\config\\专业版.swf";
                    break;

                case 2:
                    myflash.Movie = AppDomain.CurrentDomain.BaseDirectory + "\\config\\旗舰版.swf";
                    break;

                case 3:
                    myflash.Movie = AppDomain.CurrentDomain.BaseDirectory + "\\config\\网络版.swf";
                    break;

                default:
                    myflash.Movie = AppDomain.CurrentDomain.BaseDirectory + "\\config\\领先版.swf";
                    break;
                }
            }
            else
            {
                myflash.Movie = AppDomain.CurrentDomain.BaseDirectory + "\\config\\领先版.swf";
            }
            myflash.Play();

            //this.BackgroundImage = GOLDSOFT.QDJJ.UI.Properties.Resources.登陆2;
            //this.BackgroundImage = GOLDSOFT.QDJJ.UI.Properties.Resources.登陆_旗舰版3;
            //系统入口程序(数据加载 全局应用程序配置)
            this.timer1.Start();
        }
Пример #2
0
 public static void Register()
 {
     APP.DB_DEFAULT_CONN_NAME = "Sys";
     APP.OnDbExecuting        = OnDbExecuting;
     APP.Init();
 }
 public static void Register()
 {
     APP.Init();
 }