Example #1
0
        public static void IniializeSettings()
        {
            CurrentSettings = SettingsObject.GetStoredSettings();
            InitializeFunctionsDescriptions();

            IsInitialized = true;
        }
Example #2
0
        public static SettingsObject Deserialize(string obj)
        {
            SettingsObject result = null;

            using (var stream = new MemoryStream(System.Convert.FromBase64String(obj)))
            {
                var formatter = new BinaryFormatter();
                result = (SettingsObject)formatter.Deserialize(stream);
            }
            return(result);
        }
Example #3
0
        public static SettingsObject GetStoredSettings()
        {
            var result = SettingsObject.Deserialize((string)Registry.GetValue("HKEY_CURRENT_USER", "Settings", SettingsObject.GetDefaultSettings()));

            return(result);
        }
Example #4
0
 private void LoadSettings()
 {
     Settings = ExelConverter.Core.Settings.SettingsProvider.CurrentSettings;
     SelectCsvPathCommand = new RelayCommand(SelectCsvPath);
 }