Exemplo n.º 1
0
        public static void IniializeSettings()
        {
            CurrentSettings = SettingsObject.GetStoredSettings();
            InitializeFunctionsDescriptions();

            IsInitialized = true;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public static SettingsObject GetStoredSettings()
        {
            var result = SettingsObject.Deserialize((string)Registry.GetValue("HKEY_CURRENT_USER", "Settings", SettingsObject.GetDefaultSettings()));

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