2021-09-29 22:24:21 +00:00
|
|
|
using System.Reactive.Disposables;
|
|
|
|
using ReactiveUI;
|
|
|
|
using Wabbajack.App.Views;
|
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
namespace Wabbajack.App.Screens;
|
|
|
|
|
|
|
|
public partial class SettingsView : ScreenBase<SettingsViewModel>
|
2021-09-29 22:24:21 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
public SettingsView()
|
2021-09-29 22:24:21 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
InitializeComponent();
|
|
|
|
this.WhenActivated(disposables =>
|
2021-09-29 22:24:21 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
this.BindCommand(ViewModel, vm => vm.NexusLogin, view => view.NexusLogIn)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
this.BindCommand(ViewModel, vm => vm.NexusLogout, view => view.NexusLogOut)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
this.OneWayBind(ViewModel, vm => vm.Resources, view => view.ResourceList.Items)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
});
|
2021-09-29 22:24:21 +00:00
|
|
|
}
|
|
|
|
}
|