예제 #1
0
        public static string GetProductKey(string aProjectId, string aAppId, string aAppVer)
        {
            aProjectId = aProjectId.ToUpper();
            aAppId     = aAppId.ToUpper();
            aAppVer    = aAppVer.ToUpper();

            CApplicationVersion lAppVer = CApplicationVersion.StringToApplicationVersion(aAppVer);

            return(aProjectId + aAppId + __VERCH[lAppVer.Major] + __VERCH[lAppVer.Minor]);
        }
예제 #2
0
        public static void InitializeCore()
        {
            System.Windows.Forms.Application.ThreadException += new ThreadExceptionEventHandler(EH_ThreadException);
            AppDomain.CurrentDomain.UnhandledException       += new UnhandledExceptionEventHandler(EH_UnhandledException);

            _Security = null;
            _Version  = CApplicationVersion.StringToApplicationVersion(RsApplicationInfo.VersionString);
            //_Collections = new ArrayList();
            _ChildApps = new CChildApplications();
        }
예제 #3
0
        public static string GeneratePID(string aProjectId, string aAppId, string aAppVer)
        {
            aProjectId = aProjectId.ToUpper();
            aAppId     = aAppId.ToUpper();
            aAppVer    = aAppVer.ToUpper();

            CApplicationVersion lAppVer = CApplicationVersion.StringToApplicationVersion(aAppVer);

            string
                lPID1   = aProjectId.Substring(0, 5),
                lPID2   = aProjectId.Substring(5),
                lPID3   = aAppId + __VERCH[lAppVer.Major] + __VERCH[lAppVer.Minor],
                lResult = "";

            lResult  = PasswordTools.EncryptPassword_1(lPID2, lPID1, 5, true);
            lResult += PasswordTools.EncryptPassword_1(lPID3, lPID2, 5, true);
            lResult += PasswordTools.EncryptPassword_1(lPID1, lPID3, 5, true);

            return(lResult);
        }
예제 #4
0
        public static void InitializeCore()
        {
            System.Windows.Forms.Application.ThreadException += new ThreadExceptionEventHandler(EH_ThreadException);
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(EH_UnhandledException);

            _Security = null;
            _Version = CApplicationVersion.StringToApplicationVersion(RsApplicationInfo.VersionString);
            //_Collections = new ArrayList();
            _ChildApps = new CChildApplications();
        }