Example #1
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="pWindow"></param>
 public RegisterViewModel()
 {
     RegisterCommand    = new RelayParameterizedCommand(async(parameter) => await Register(parameter));
     BackToLoginCommand = new RelayCommand(async() => await BackToLogin());
 }
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="pWindow"></param>
 public LoginViewModel()
 {
     //Create commands
     LoginCommand    = new RelayParameterizedCommand(async(parameter) => await Login(parameter));
     RegisterCommand = new RelayCommand(async() => await Register());
 }