Skip to content

Instantly share code, notes, and snippets.

@axemastabloggists
Created August 14, 2018 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axemastabloggists/da132f3cdc8131f814652b4e6a1f5e8b to your computer and use it in GitHub Desktop.
Save axemastabloggists/da132f3cdc8131f814652b4e6a1f5e8b to your computer and use it in GitHub Desktop.
Data Persistence Properties Blog - Gist 15
#region Properties
public ICommand GetValueCommand { get; private set; }
public ICommand UpdateValueCommand { get; private set; }
#endregion Properties
#region OnCommand Methods
private void OnGetValue()
{
_redirectUrl = _appSettings.RedirectUrl;
OnPropertyChanged(nameof(RedirectUrl));
}
private void OnUpdateValue()
{
if (_appSettings.RedirectUrl != _updatedValue)
{
_appSettings.RedirectUrl = _updatedValue;
}
}
#endregion OnCommand Methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment