2019-12-09 00:19:36 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2020-01-21 04:23:33 +00:00
|
|
|
|
using System.Reactive.Disposables;
|
2019-12-09 00:19:36 +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-21 04:23:33 +00:00
|
|
|
|
using ReactiveUI;
|
|
|
|
|
using Wabbajack.Common;
|
2019-12-09 00:19:36 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for ConfirmationInterventionView.xaml
|
|
|
|
|
/// </summary>
|
2020-01-21 04:23:33 +00:00
|
|
|
|
public partial class ConfirmationInterventionView : ReactiveUserControl<ConfirmationIntervention>
|
2019-12-09 00:19:36 +00:00
|
|
|
|
{
|
|
|
|
|
public ConfirmationInterventionView()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-01-21 04:23:33 +00:00
|
|
|
|
this.WhenActivated(dispose =>
|
|
|
|
|
{
|
|
|
|
|
this.WhenAny(x => x.ViewModel.ShortDescription)
|
|
|
|
|
.BindToStrict(this, x => x.ShortDescription.Text)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
this.WhenAny(x => x.ViewModel.ExtendedDescription)
|
|
|
|
|
.BindToStrict(this, x => x.ExtendedDescription.Text)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
this.WhenAny(x => x.ViewModel.ConfirmCommand)
|
|
|
|
|
.BindToStrict(this, x => x.ConfirmButton.Command)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
this.WhenAny(x => x.ViewModel.CancelCommand)
|
|
|
|
|
.BindToStrict(this, x => x.CancelButton.Command)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
});
|
2019-12-09 00:19:36 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|