2019-12-20 20:51:10 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2020-01-06 04:49:11 +00:00
|
|
|
|
using System.Reactive.Disposables;
|
2020-01-07 05:44:05 +00:00
|
|
|
|
using System.Reactive.Linq;
|
2019-12-20 20:51:10 +00:00
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
using System.Windows.Documents;
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
using System.Windows.Navigation;
|
|
|
|
|
using System.Windows.Shapes;
|
2020-01-06 04:49:11 +00:00
|
|
|
|
using ReactiveUI;
|
2019-12-20 20:51:10 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2020-01-05 03:09:02 +00:00
|
|
|
|
/// Interaction logic for SettingsView.xaml
|
2019-12-20 20:51:10 +00:00
|
|
|
|
/// </summary>
|
2020-01-06 04:49:11 +00:00
|
|
|
|
public partial class SettingsView : ReactiveUserControl<SettingsVM>
|
2019-12-20 20:51:10 +00:00
|
|
|
|
{
|
2020-01-05 03:09:02 +00:00
|
|
|
|
public SettingsView()
|
2019-12-20 20:51:10 +00:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-01-06 04:49:11 +00:00
|
|
|
|
this.WhenActivated(disposable =>
|
|
|
|
|
{
|
2020-01-07 05:44:05 +00:00
|
|
|
|
this.OneWayBindStrict(this.ViewModel, x => x.BackCommand, x => x.BackButton.Command)
|
2020-01-06 04:49:11 +00:00
|
|
|
|
.DisposeWith(disposable);
|
2020-01-07 05:44:05 +00:00
|
|
|
|
this.OneWayBindStrict(this.ViewModel, x => x.Login, x => x.LoginView.ViewModel)
|
2020-01-06 04:49:11 +00:00
|
|
|
|
.DisposeWith(disposable);
|
2020-01-07 05:44:05 +00:00
|
|
|
|
this.OneWayBindStrict(this.ViewModel, x => x.Performance, x => x.PerformanceView.ViewModel)
|
2020-01-06 04:49:11 +00:00
|
|
|
|
.DisposeWith(disposable);
|
2020-05-10 04:35:39 +00:00
|
|
|
|
this.OneWayBindStrict(this.ViewModel, x => x.Filters, x => x.ModlistGalleryView.ViewModel)
|
|
|
|
|
.DisposeWith(disposable);
|
2020-01-06 04:49:11 +00:00
|
|
|
|
});
|
2019-12-20 20:51:10 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|