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-11-04 13:01:48 +00:00
|
|
|
public SettingsView() : base("Settings")
|
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);
|
2021-11-09 22:40:21 +00:00
|
|
|
|
|
|
|
this.BindCommand(ViewModel, vm => vm.LoversLabLogin, view => view.LoversLabLogIn)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
this.BindCommand(ViewModel, vm => vm.LoversLabLogout, view => view.LoversLabLogOut)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
|
|
|
|
|
|
|
|
this.BindCommand(ViewModel, vm => vm.VectorPlexusLogin, view => view.VectorPlexusLogIn)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
this.BindCommand(ViewModel, vm => vm.VectorPlexusLogout, view => view.VectorPlexusLogOut)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
|
|
|
|
|
2021-11-10 04:51:37 +00:00
|
|
|
this.OneWayBind(ViewModel, vm => vm.Resources, view => view.ResourcesList.Items)
|
2021-10-23 16:51:17 +00:00
|
|
|
.DisposeWith(disposables);
|
2021-11-10 04:51:37 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
});
|
2021-09-29 22:24:21 +00:00
|
|
|
}
|
|
|
|
}
|