Esempio n. 1
0
        public static LDDEnvironment Create(string programFilesPath, string applicationDataPath)
        {
            var lddEnv = new LDDEnvironment()
            {
                ProgramFilesPath    = programFilesPath,
                ApplicationDataPath = applicationDataPath,
            };

            lddEnv.Validate();
            return(lddEnv);
        }
Esempio n. 2
0
        public static LDDEnvironment FindInstalledEnvironment()
        {
            string installDir = FindInstallFolder();

            if (!string.IsNullOrEmpty(installDir))
            {
                var lddEnv = new LDDEnvironment()
                {
                    ProgramFilesPath    = installDir,
                    ApplicationDataPath = FindAppDataFolder(),
                    UserCreationPath    = FindUserFolder()
                };
                lddEnv.Validate();
                return(lddEnv);
            }

            return(null);
        }