2019-12-14 03:47:09 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2020-01-20 22:26:45 +00:00
|
|
|
|
using System.Reactive.Disposables;
|
|
|
|
|
using System.Reactive.Linq;
|
2019-12-14 03:47:09 +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-20 22:26:45 +00:00
|
|
|
|
using ReactiveUI;
|
2019-12-14 03:47:09 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for CompilationCompleteView.xaml
|
|
|
|
|
/// </summary>
|
2020-01-20 22:26:45 +00:00
|
|
|
|
public partial class CompilationCompleteView : ReactiveUserControl<CompilerVM>
|
2019-12-14 03:47:09 +00:00
|
|
|
|
{
|
|
|
|
|
public CompilationCompleteView()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-01-20 22:26:45 +00:00
|
|
|
|
this.WhenActivated(dispose =>
|
|
|
|
|
{
|
|
|
|
|
this.WhenAny(x => x.ViewModel.Completed)
|
|
|
|
|
.Select(x => x?.Failed ?? false)
|
|
|
|
|
.BindToStrict(this, x => x.AttentionBorder.Failure)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
this.WhenAny(x => x.ViewModel.Completed)
|
|
|
|
|
.Select(x => x?.Failed ?? false)
|
|
|
|
|
.Select(failed =>
|
|
|
|
|
{
|
|
|
|
|
return $"Compilation {(failed ? "Failed" : "Complete")}";
|
|
|
|
|
})
|
|
|
|
|
.BindToStrict(this, x => x.TitleText.Text)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
this.WhenAny(x => x.ViewModel.BackCommand)
|
|
|
|
|
.BindToStrict(this, x => x.BackButton.Command)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
this.WhenAny(x => x.ViewModel.GoToModlistCommand)
|
|
|
|
|
.BindToStrict(this, x => x.GoToModlistButton.Command)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
this.WhenAny(x => x.ViewModel.CloseWhenCompleteCommand)
|
|
|
|
|
.BindToStrict(this, x => x.CloseWhenCompletedButton.Command)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
});
|
2019-12-14 03:47:09 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|