Ejemplo n.º 1
0
        public static void AssignValues()
        {
            string assemblyLocation = Assembly.GetEntryAssembly().Location;

#if PORTABLE
            mainFolder = Path.GetDirectoryName(assemblyLocation);
#else
            mainFolder = UserSpecificDataFolder;
#endif
            applicationFolder      = Path.GetDirectoryName(assemblyLocation);
            applicationDrive       = FileOperations.ExcludeTrailingPathDelimiter(Path.GetPathRoot(MainFolder));
            serverRoot             = FoldersInfo.ConcatenatePath(MainFolder, @"WebContent");
            rollingStonesFolder    = FoldersInfo.ConcatenatePath(MainFolder, @"Stones");
            stoneClasses           = FoldersInfo.ConcatenatePath(MainFolder, @"Classes");
            iconsFolder            = FoldersInfo.ConcatenatePath(MainFolder, @"Icons");
            dockletsFolder         = FoldersInfo.ConcatenatePath(MainFolder, @"Docklets");
            homeCircleName         = Path.Combine(RollingStonesFolder, @"Default.circle");
            krentoSettingsFileName = Path.Combine(MainFolder, "Krento.ini");
            krentoConfigFileName   = Path.Combine(MainFolder, "Krento.config");
            keyMappingFileName     = Path.Combine(MainFolder, "KeyMapping.ini");
            siteImagesFileName     = Path.Combine(MainFolder, "WebImages.ini");
            appImagesFileName      = Path.Combine(MainFolder, "AppImages.ini");
            siteIconsFolder        = FoldersInfo.ConcatenatePath(MainFolder, @"Icons\Sites");
            appIconsFolder         = FoldersInfo.ConcatenatePath(MainFolder, @"Icons\Applications");
            extIconsFolder         = FoldersInfo.ConcatenatePath(MainFolder, @"Icons\Extensions");
            languagesFolder        = FoldersInfo.ConcatenatePath(MainFolder, @"Languages");
            menusFolder            = FoldersInfo.ConcatenatePath(MainFolder, @"Menus");
            toysFolder             = FoldersInfo.ConcatenatePath(MainFolder, @"Toys");
            downloadsFolder        = FoldersInfo.ConcatenatePath(MainFolder, @"Downloads");
            cacheFolder            = FoldersInfo.ConcatenatePath(MainFolder, @"Cache");
            appShortcuts           = FoldersInfo.ConcatenatePath(MainFolder, @"Shortcuts");
            skinsFolder            = FoldersInfo.ConcatenatePath(MainFolder, @"Skins");
            extensionsFolder       = FoldersInfo.ConcatenatePath(MainFolder, @"Extensions");
            ringsIconsFolder       = FoldersInfo.ConcatenatePath(MainFolder, @"Icons\Rings");

#if PORTABLE
            backupFolder = FoldersInfo.ConcatenatePath(MainFolder, @"Backup");
#else
            backupFolder = GlobalConfig.UserSpecificDocuments;
#endif
        }