Exemple #1
0
        private void Refresh()
        {
            _credentialsFile = new ProfileIniFile(FilePath, false);

            // If a config file exists in the same location as the credentials file
            // load it for use as a read-only source of profile properties.
            var configPath = Path.Combine(Path.GetDirectoryName(FilePath), ConfigFileName);

            if (File.Exists(configPath))
            {
                _configFile = new ProfileIniFile(configPath, true);
            }
        }