added login logic and text
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user