bloxstrap/Bloxstrap/UI/ViewModels/Dialogs/LaunchMenuViewModel.cs
pizzaboxer 776dbc4097
Draft: new installer system
the beginning of a long arduous cleanup of two years of debt
2024-08-10 13:08:04 +01:00

24 lines
827 B
C#

using System.Windows.Input;
using CommunityToolkit.Mvvm.Input;
using Bloxstrap.Resources;
namespace Bloxstrap.UI.ViewModels.Installer
{
// TODO: have it so it shows "Launch Roblox"/"Install and Launch Roblox" depending on state of /App/ folder
public class LaunchMenuViewModel
{
public string Version => string.Format(Strings.Menu_About_Version, App.Version);
public ICommand LaunchSettingsCommand => new RelayCommand(LaunchSettings);
public ICommand LaunchRobloxCommand => new RelayCommand(LaunchRoblox);
public event EventHandler<NextAction>? CloseWindowRequest;
private void LaunchSettings() => CloseWindowRequest?.Invoke(this, NextAction.LaunchSettings);
private void LaunchRoblox() => CloseWindowRequest?.Invoke(this, NextAction.LaunchRoblox);
}
}