wabbajack/Wabbajack.App/Views/ModeSelectionView.axaml.cs
Timothy Baldridge 47e01dcc34 More styling
2021-11-04 07:01:48 -06:00

38 lines
1.3 KiB
C#

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) : base("")
{
InitializeComponent();
this.WhenActivated(disposables =>
{
InstallButton.Button.Command = ReactiveCommand.Create(() =>
{
MessageBus.Current.SendMessage(new NavigateTo(typeof(InstallConfigurationViewModel)));
}).DisposeWith(disposables);
BrowseButton.Button.Command = ReactiveCommand.Create(() =>
{
MessageBus.Current.SendMessage(new NavigateTo(typeof(BrowseViewModel)));
}).DisposeWith(disposables);
CompileButton.Button.Command = ReactiveCommand.Create(() =>
{
MessageBus.Current.SendMessage(new NavigateTo(typeof(CompilerConfigurationViewModel)));
}).DisposeWith(disposables);
LaunchButton.Button.Command = ReactiveCommand.Create(() =>
{
MessageBus.Current.SendMessage(new NavigateTo(typeof(PlaySelectViewModel)));
});
});
}
}