Guest User

Untitled

a guest
Jan 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. using System;
  2. using System.Threading.Tasks;
  3. using News.Models;
  4. using Xamarin.Forms;
  5.  
  6. namespace News.ViewModels
  7. {
  8. public class LoginViewModel : BaseViewModel
  9. {
  10. private UserInfo currentUser;
  11.  
  12. public UserInfo CurrentUser
  13. {
  14. get { return currentUser; }
  15. set
  16. {
  17. currentUser = value;
  18. OnPropertyChanged();
  19. }
  20. }
  21.  
  22. public Command LoginCommand { get; }
  23.  
  24. public LoginViewModel()
  25. {
  26. currentUser = new UserInfo();
  27. LoginCommand = new Command(async () => await ExecuteLoginCommand());
  28. }
  29.  
  30. async Task ExecuteLoginCommand()
  31. {
  32. await Task.Delay(100);
  33. return;
  34. }
  35. }
  36. }
Add Comment
Please, Sign In to add comment