public void ChangePassword(String password) { if (!SettingsAvailable() && !SettingsUnlocked()) { Settings = new SettingsBase(); } Settings.SetKey(password); Settings.FilePath = JsonSettings.GetFilePath(SettingsBase.ApplicationName, SettingsBase.FileName); Settings.Save(); }
public bool SettingsAvailable() { String path = JsonSettings.GetFilePath(SettingsBase.ApplicationName, SettingsBase.FileName); return(JsonSettings.Exists(path)); }