mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
22 lines
712 B
C#
22 lines
712 B
C#
using System.Reactive.Disposables;
|
|
using ReactiveUI;
|
|
using Wabbajack.App.Views;
|
|
|
|
namespace Wabbajack.App.Screens;
|
|
|
|
public partial class SettingsView : ScreenBase<SettingsViewModel>
|
|
{
|
|
public SettingsView()
|
|
{
|
|
InitializeComponent();
|
|
this.WhenActivated(disposables =>
|
|
{
|
|
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);
|
|
});
|
|
}
|
|
} |