This commit is contained in:
Timothy Baldridge 2022-01-02 21:34:16 -07:00
parent 92e1e3e393
commit 149dd9b07e
2 changed files with 5 additions and 6 deletions

View File

@ -1,6 +1,7 @@
using System;
using System.Windows.Input;
using System.Windows.Media;
using ReactiveUI;
namespace Wabbajack.LoginManagers;

View File

@ -5,7 +5,7 @@ using ReactiveUI;
namespace Wabbajack
{
public partial class LoginItemView
public partial class LoginItemView : IViewFor<LoginTargetVM>
{
public LoginItemView()
{
@ -20,12 +20,10 @@ namespace Wabbajack
.BindToStrict(this, view => view.SiteNameText.Text)
.DisposeWith(disposable);
ViewModel.WhenAnyValue(vm => vm.Login.TriggerLogin)
.BindToStrict(this, view => view.LoginButton.Command)
this.BindCommand(ViewModel, vm => vm.Login.TriggerLogin, view => view.LoginButton)
.DisposeWith(disposable);
ViewModel.WhenAnyValue(vm => vm.Login.ClearLogin)
.BindToStrict(this, view => view.LogoutButton.Command)
this.BindCommand(ViewModel, vm => vm.Login.ClearLogin, view => view.LogoutButton)
.DisposeWith(disposable);
});