wabbajack/Wabbajack.App.Wpf/Messages/NavigateToGlobal.cs

30 lines
532 B
C#
Raw Normal View History

using ReactiveUI;
namespace Wabbajack.Messages;
public class NavigateToGlobal
{
public enum ScreenType
{
ModeSelectionView,
ModListGallery,
Installer,
Settings,
Compiler,
ModListContents,
WebBrowser
}
public ScreenType Screen { get; }
private NavigateToGlobal(ScreenType screen)
{
Screen = screen;
}
public static void Send(ScreenType screen)
{
MessageBus.Current.SendMessage(new NavigateToGlobal(screen));
}
}