public static LDDEnvironment Create(string programFilesPath, string applicationDataPath) { var lddEnv = new LDDEnvironment() { ProgramFilesPath = programFilesPath, ApplicationDataPath = applicationDataPath, }; lddEnv.Validate(); return(lddEnv); }
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); }