2021-09-27 12:42:46 +00:00
|
|
|
using System;
|
|
|
|
using System.Reactive.Disposables;
|
|
|
|
using ReactiveUI;
|
|
|
|
using Wabbajack.App.Messages;
|
|
|
|
using Wabbajack.App.Screens;
|
|
|
|
using Wabbajack.App.ViewModels;
|
|
|
|
|
|
|
|
namespace Wabbajack.App.Views
|
|
|
|
{
|
|
|
|
public partial class ModeSelectionView : ScreenBase<ModeSelectionViewModel>
|
|
|
|
{
|
|
|
|
public ModeSelectionView(IServiceProvider provider)
|
|
|
|
{
|
|
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
this.WhenActivated(disposables =>
|
|
|
|
{
|
|
|
|
InstallButton.Button.Command = ReactiveCommand.Create(() =>
|
|
|
|
{
|
|
|
|
MessageBus.Instance.Send(new NavigateTo(typeof(InstallConfigurationViewModel)));
|
|
|
|
}).DisposeWith(disposables);
|
|
|
|
|
|
|
|
BrowseButton.Button.Command = ReactiveCommand.Create(() =>
|
|
|
|
{
|
|
|
|
MessageBus.Instance.Send(new NavigateTo(typeof(BrowseViewModel)));
|
|
|
|
}).DisposeWith(disposables);
|
2021-10-11 12:12:24 +00:00
|
|
|
|
|
|
|
CompileButton.Button.Command = ReactiveCommand.Create(() =>
|
|
|
|
{
|
|
|
|
MessageBus.Instance.Send(new NavigateTo(typeof(CompilerConfigurationViewModel)));
|
|
|
|
}).DisposeWith(disposables);
|
2021-09-27 12:42:46 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|