2021-10-11 12:12:24 +00:00
|
|
|
|
|
|
|
|
2021-10-12 03:49:01 +00:00
|
|
|
using System.Reactive.Disposables;
|
|
|
|
using Avalonia;
|
|
|
|
using ReactiveUI;
|
2021-10-11 12:12:24 +00:00
|
|
|
using Wabbajack.App.Views;
|
|
|
|
|
|
|
|
namespace Wabbajack.App.Screens
|
|
|
|
{
|
|
|
|
public partial class CompilerConfigurationView : ScreenBase<CompilerConfigurationViewModel>
|
|
|
|
{
|
|
|
|
public CompilerConfigurationView()
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
2021-10-12 03:49:01 +00:00
|
|
|
this.WhenActivated(disposables =>
|
|
|
|
{
|
|
|
|
|
|
|
|
this.Bind(ViewModel, vm => vm.BasePath, view => view.BaseFolder.SelectedPath)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
|
|
|
|
this.Bind(ViewModel, vm => vm.SettingsFile, view => view.SettingsFile.SelectedPath)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
|
|
|
|
this.Bind(ViewModel, vm => vm.Downloads, view => view.DownloadsFolder.SelectedPath)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
|
|
|
|
this.OneWayBind(ViewModel, vm => vm.AllGames, view => view.BaseGame.Items)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
|
|
|
|
this.Bind(ViewModel, vm => vm.BaseGame, view => view.BaseGame.SelectedItem)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
|
|
|
|
this.BindCommand(ViewModel, vm => vm.StartCompilation, view => view.StartCompilation)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
2021-10-11 12:12:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|