bloxstrap/Bloxstrap/UI/ViewModels/Installer/CompletionViewModel.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
671 B
C#

using System.Windows;
using System.Windows.Input;
using CommunityToolkit.Mvvm.Input;
using Bloxstrap.Resources;
using Microsoft.Win32;
namespace Bloxstrap.UI.ViewModels.Installer
{
public class CompletionViewModel
{
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);
}
}