예제 #1
0
        public void ChangePassword(String password)
        {
            if (!SettingsAvailable() && !SettingsUnlocked())
            {
                Settings = new SettingsBase();
            }

            Settings.SetKey(password);
            Settings.FilePath = JsonSettings.GetFilePath(SettingsBase.ApplicationName, SettingsBase.FileName);
            Settings.Save();
        }
예제 #2
0
        public bool SettingsAvailable()
        {
            String path = JsonSettings.GetFilePath(SettingsBase.ApplicationName, SettingsBase.FileName);

            return(JsonSettings.Exists(path));
        }