/// <summary> /// /// </summary> /// <param name="ob"></param> public void SaveUserSettingsAfterAcceptedDisclaimer() { SelectedUserSettings.DisclaimerIsEnabled = 0; var changes = SelectedUserSettings.GetChanges(); UserSettingsRepositoryHelper.UpdateUserSettings(SelectedUserSettings, changes); RepositoryHelper.CommitPendingDbChanges(); SendMessage(new MainViewModelMessage() { Purpose = MessagePurpose.OPEN_SNACKBAR, Payload = "Welcome!" }); }
/// <summary> /// /// </summary> /// <param name="ob"></param> public void SaveUserSettings(object ob) { var changes = SelectedUserSettings.GetChanges(); UserSettingsRepositoryHelper.UpdateUserSettings(SelectedUserSettings, changes); RepositoryHelper.CommitPendingDbChanges(); SelectedUserSettings.CacheObject(); SendMessage(new MainViewModelMessage() { Purpose = MessagePurpose.OPEN_SNACKBAR, Payload = "Saved user settings" }); }
/// <summary> /// /// </summary> /// <param name="ob"></param> public void SaveConfiguration(object ob) { var changes = SelectedConfiguration.GetChanges(); ConfigurationRepositoryHelper.UpdateConfiguration(SelectedConfiguration, changes); RepositoryHelper.CommitPendingDbChanges(); SelectedConfiguration.CacheObject(); SendMessage(new MainViewModelMessage() { Purpose = MessagePurpose.OPEN_SNACKBAR, Payload = $"Saved configuration for {SelectedConfiguration.Crypto.CryptoName} " }); }