mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
|
|
|
|
using System.Reactive.Disposables;
|
|
using Avalonia;
|
|
using ReactiveUI;
|
|
using Wabbajack.App.Views;
|
|
|
|
namespace Wabbajack.App.Screens
|
|
{
|
|
public partial class CompilerConfigurationView : ScreenBase<CompilerConfigurationViewModel>
|
|
{
|
|
public CompilerConfigurationView()
|
|
{
|
|
InitializeComponent();
|
|
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);
|
|
|
|
|
|
});
|
|
}
|
|
}
|
|
} |