mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
31 lines
959 B
C#
31 lines
959 B
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)
|
||
|
{
|
||
|
|
||
|
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);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|