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