Esempio n. 1
0
        public static void Read()
        {
            if (!Directory.Exists(ApplicationSettingsFolder))
            {
                Directory.CreateDirectory(ApplicationSettingsFolder);
            }

            FileInfo settingsFileInfo = new FileInfo(SettingsFilePath);

            if (!settingsFileInfo.Exists)
            {
                ViewerSettingsData.WriteToFile(SettingsFilePath, _viewerSettings);
            }
            else
            {
                _viewerSettings = ViewerSettingsData.ReadFromFile(settingsFileInfo.FullName);
            }
        }
Esempio n. 2
0
 public static void Write()
 {
     ViewerSettingsData.WriteToFile(SettingsFilePath, _viewerSettings);
 }