public static void IniializeSettings() { CurrentSettings = SettingsObject.GetStoredSettings(); InitializeFunctionsDescriptions(); IsInitialized = true; }
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); }
public static SettingsObject GetStoredSettings() { var result = SettingsObject.Deserialize((string)Registry.GetValue("HKEY_CURRENT_USER", "Settings", SettingsObject.GetDefaultSettings())); return(result); }
private void LoadSettings() { Settings = ExelConverter.Core.Settings.SettingsProvider.CurrentSettings; SelectCsvPathCommand = new RelayCommand(SelectCsvPath); }