wabbajack/Wabbajack.App.Wpf/Messages/NavigateTo.cs
2021-12-29 10:26:12 -07:00

21 lines
351 B
C#

using ReactiveUI;
using Wabbajack.Lib;
namespace Wabbajack.Messages;
public class NavigateTo
{
public ViewModel ViewModel { get; }
private NavigateTo(ViewModel vm)
{
ViewModel = vm;
}
public static void Send<T>(T vm)
where T : ViewModel
{
MessageBus.Current.SendMessage(new NavigateTo(vm));
}
}