2020-05-10 04:35:39 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reactive.Disposables;
|
|
|
|
|
using System.Reactive.Linq;
|
|
|
|
|
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;
|
|
|
|
|
using ReactiveUI;
|
|
|
|
|
using Wabbajack.Common;
|
2020-05-29 22:51:41 +00:00
|
|
|
|
using Wabbajack.Lib.WebAutomation;
|
2020-05-10 04:35:39 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2020-08-08 12:48:04 +00:00
|
|
|
|
/// Interaction logic for MiscSettingsView.xaml
|
2020-05-10 04:35:39 +00:00
|
|
|
|
/// </summary>
|
2020-08-08 12:48:04 +00:00
|
|
|
|
public partial class MiscSettingsView : ReactiveUserControl<FiltersSettings>
|
2020-05-10 04:35:39 +00:00
|
|
|
|
{
|
2020-08-08 12:48:04 +00:00
|
|
|
|
public MiscSettingsView()
|
2020-05-10 04:35:39 +00:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
this.WhenActivated(disposable =>
|
|
|
|
|
{
|
|
|
|
|
// Bind Values
|
2020-05-10 04:59:34 +00:00
|
|
|
|
this.Bind(this.ViewModel, x => x.IsPersistent, x => x.FilterPersistCheckBox.IsChecked)
|
2020-05-10 04:35:39 +00:00
|
|
|
|
.DisposeWith(disposable);
|
2020-08-05 22:01:45 +00:00
|
|
|
|
this.Bind(this.ViewModel, x => x.UseCompression, x => x.UseCompressionCheckBox.IsChecked)
|
|
|
|
|
.DisposeWith(disposable);
|
2020-05-29 22:51:41 +00:00
|
|
|
|
|
|
|
|
|
this.ClearCefCache.Click += (sender, args) => {Driver.ClearCache();};
|
2020-05-10 04:35:39 +00:00
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|