コード例 #1
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public LoginViewModel()
 {
     LoginCommand    = new RelayParameterizedCommand(async(parameter) => await LoginAsync(parameter));
     RegisterCommand = new RelayCommand(async() => await RegisterAsync());
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RegisterViewModel"/> class.
 /// </summary>
 public RegisterViewModel()
 {
     // Create commands
     LoginCommand    = new RelayCommand(async() => await LoginAsync());
     RegisterCommand = new RelayParameterizedCommand(async(parameter) => await RegisterAsync(parameter));
 }