added login logic and text

This commit is contained in:
shinichi
2020-10-07 15:14:39 +02:00
parent 6e2b3a80b3
commit 6159f3f57b
3 changed files with 27 additions and 14 deletions

View File

@@ -1,11 +1,26 @@
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; }
}
}