2019-11-24 08:12:28 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2020-02-02 07:33:12 +00:00
|
|
|
|
using System.Reactive.Disposables;
|
|
|
|
|
using System.Reactive.Linq;
|
2019-11-24 08:12:28 +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-02-02 07:33:12 +00:00
|
|
|
|
using ReactiveUI;
|
2019-11-24 08:12:28 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for ModeSelectionView.xaml
|
|
|
|
|
/// </summary>
|
2020-02-02 07:33:12 +00:00
|
|
|
|
public partial class ModeSelectionView : ReactiveUserControl<ModeSelectionVM>
|
2019-11-24 08:12:28 +00:00
|
|
|
|
{
|
|
|
|
|
public ModeSelectionView()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-02-02 07:33:12 +00:00
|
|
|
|
this.WhenActivated(dispose =>
|
|
|
|
|
{
|
|
|
|
|
this.WhenAny(x => x.ViewModel.BrowseCommand)
|
|
|
|
|
.BindToStrict(this, x => x.BrowseButton.Command)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
this.WhenAny(x => x.ViewModel.InstallCommand)
|
|
|
|
|
.BindToStrict(this, x => x.InstallButton.Command)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
this.WhenAny(x => x.ViewModel.CompileCommand)
|
|
|
|
|
.BindToStrict(this, x => x.CompileButton.Command)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
});
|
2019-11-24 08:12:28 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|