2024-05-21 21:10:37 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Diagnostics.Eventing.Reader;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reactive.Disposables;
|
|
|
|
|
using System.Reactive.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using ReactiveUI;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using DynamicData;
|
|
|
|
|
using Microsoft.WindowsAPICodePack.Dialogs;
|
|
|
|
|
using Wabbajack.Common;
|
|
|
|
|
using Wabbajack.Paths;
|
|
|
|
|
using Wabbajack.Paths.IO;
|
|
|
|
|
using Wabbajack.ViewModels.Controls;
|
|
|
|
|
using Wabbajack.Services.OSIntegrated;
|
2024-05-25 20:57:00 +00:00
|
|
|
|
using ReactiveMarbles.ObservableEvents;
|
2024-05-21 21:10:37 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for CompilerFileManagerView.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class CompilerFileManagerView : ReactiveUserControl<CompilerFileManagerVM>
|
|
|
|
|
{
|
|
|
|
|
public CompilerFileManagerView()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
2024-05-25 12:58:34 +00:00
|
|
|
|
|
2024-05-21 21:10:37 +00:00
|
|
|
|
this.WhenActivated(disposables =>
|
|
|
|
|
{
|
2024-05-25 12:58:34 +00:00
|
|
|
|
this.WhenAny(x => x.ViewModel.Files)
|
|
|
|
|
.BindToStrict(this, v => v.FileTreeView.ItemsSource)
|
|
|
|
|
.DisposeWith(disposables);
|
2024-05-25 20:57:00 +00:00
|
|
|
|
|
2024-06-08 17:02:14 +00:00
|
|
|
|
this.BindCommand(ViewModel, vm => vm.PrevCommand, v => v.PrevButton)
|
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
|
|
2024-05-21 21:10:37 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|