wabbajack/Wabbajack.App/Screens/SettingsView.axaml.cs

22 lines
712 B
C#
Raw Normal View History

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-10-23 16:51:17 +00:00
public SettingsView()
{
2021-10-23 16:51:17 +00:00
InitializeComponent();
this.WhenActivated(disposables =>
{
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);
});
}
}