예제 #1
0
        public Boot(LicenseManager licenseValidation, AddinManager addinManager, AddinLoader addinLoader,
                    EventDispatcher dispatcher, FormEventHandler formEventHandler, I18NService i18nService)
        {
            this.licenseManager   = licenseValidation;
            this.addinManager     = addinManager;
            this.dispatcher       = dispatcher;
            this.formEventHandler = formEventHandler;
            this.addinLoader      = addinLoader;

            i18nService.ConfigureThreadI18n(System.Threading.Thread.CurrentThread);
        }
예제 #2
0
        static App()
        {
            UserDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
                           "\\West Wind WebSurge\\";
            if (!Directory.Exists(UserDataPath))
            {
                Directory.CreateDirectory(UserDataPath);
            }

            LogFile = UserDataPath + "WebSurgeErrors.log";

/*
 *          VersionCheckUrl = "https://west-wind.com/files/WebSurge_Version.xml";
 *          InstallerDownloadUrl = "https://west-wind.com/files/WebsurgeSetup.exe";
 *          InstallerDownloadPage = "https://websurge.west-wind.com/download.aspx";
 *          WebHomeUrl = "https://websurge.west-wind.com";
 *          PurchaseUrl = "https://store.west-wind.com/product/order/websurge";
 *          DocsUrl = "https://websurge.west-wind.com/docs/";
 */
            Configuration = new WebSurgeConfiguration();
            //Configuration.Initialize();
            try
            {
                Configuration.Initialize();
            }
            catch (Exception ex)
            {
                // Log but continue on with default settings
                App.Log(ex);
            }

            // Encryption key is only valid on the current machine
            EncryptionMachineKey = "22653K0U*He73kj4$JJ" + Environment.MachineName;
            ProKey = "Kuhela_100";  // "3bd0f6e";


            Addins = AddinLoader.LoadAddins();
        }