Last active
August 29, 2015 14:15
-
-
Save CuriousCurmudgeon/02776ac2f21d74fe9569 to your computer and use it in GitHub Desktop.
TileViewModel
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
public class TileViewModel : MvxViewModel | |
{ | |
private readonly ITileService _tileService; | |
public TileViewModel(ITileService tileService) | |
{ | |
_tileService = tileService; | |
} | |
private string _color; | |
public string Color | |
{ | |
get { return _color; } | |
set { _color = value; RaisePropertyChanged(() => Color); } | |
} | |
public IMvxCommand UpdateState | |
{ | |
get | |
{ | |
return new MvxCommand(async () => | |
{ | |
await _tileService.UpdateStateAsync(this); | |
}); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment