Esempio n. 1
0
        public ApplicationEnvironmentBase(IExtendedEnvironmentVariables environmentVariables, ISettingsManager settingsManager)
        {
            _environmentVariables = environmentVariables;
            _settingsManager      = settingsManager;

            LocalAppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
                                            environmentVariables.ApplicationName, environmentVariables.ApplicationVersion);

            AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
                                       environmentVariables.ApplicationName, environmentVariables.ApplicationVersion);
        }
Esempio n. 2
0
 public SettingsImportExportOptions(ISettingsManager settingsManager, IExtendedEnvironmentVariables environmentVariables)
     : base(settingsManager)
 {
     _environmentVariables = environmentVariables;
     settingsManager.SettingsLocationChanged += _settingsManager_SettingsLocationChanged;
 }
Esempio n. 3
0
 public SettingsManager(IExtendedEnvironmentVariables environmentVariables)
 {
     EnvironmentVariables = environmentVariables;
     ValueSerializer      = new SettingsValueSerializer();
     Initialized         += SettingsManager_Initialized;
 }
Esempio n. 4
0
 public ResetLayoutCommand(IExtendedEnvironmentVariables environmentVariables)
 {
     _environmentVariables = environmentVariables;
 }