Guest User

Untitled

a guest
Jan 4th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public ICommand ChangePositionCommand => new Command((obj) =>
  2. {
  3. _positionIndex++;
  4. if (_positionIndex >= Positions.Count)
  5. _positionIndex = 0;
  6. Position = Positions[_positionIndex];
  7. RaisePropertyChanged(nameof(Position));
  8. });
  9.  
  10. public ICommand ChangePositionCommand {
  11. return new Command((obj) => {
  12. _positionIndex++;
  13. if (_positionIndex >= Positions.Count)
  14. _positionIndex = 0;
  15. Position = Positions[_positionIndex];
  16. RaisePropertyChanged(nameof(Position));
  17. });
  18. }
  19.  
  20. public int X { get {return A + B;}}
  21.  
  22. public int X => A + B;
Add Comment
Please, Sign In to add comment