示例#1
0
        /// <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!"
            });
        }
示例#2
0
        /// <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"
            });
        }
示例#3
0
        /// <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} "
            });
        }