Files
Proftaak-RH-B4/ClientApp/ViewModels/LoginViewModel.cs
2020-10-07 15:14:39 +02:00

27 lines
712 B
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Windows.Controls;
using System.Windows.Input;
using ClientApp.Utils;
using GalaSoft.MvvmLight.Command;
namespace ClientApp.ViewModels
{
class LoginViewModel : ObservableObject
{
public string Username { get; set; }
public LoginViewModel()
{
LoginCommand = new RelayCommand<object>((parameter) =>
{
Debug.WriteLine($"username {Username} password {((PasswordBox)parameter).Password}");
//TODO send username and password to server
});
}
public ICommand LoginCommand { get; set; }
}
}