Created
August 14, 2018 21:37
-
-
Save axemastabloggists/da132f3cdc8131f814652b4e6a1f5e8b to your computer and use it in GitHub Desktop.
Data Persistence Properties Blog - Gist 15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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