public LoginSelectRoleWindow() { InitializeComponent(); vm = new LoginViewModel(); this.DataContext = vm; vm.GetResult += vm_GetResult; }
public Login() { InitializeComponent(); vm = new LoginViewModel(); this.DataContext = vm; vm.GetResult += vm_GetResult; this.btnLogin.Click += btnLogin_Click; }