bloxstrap/Bloxstrap/UI/ViewModels/GlobalViewModel.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

19 lines
433 B
C#

using System.Windows.Input;
using CommunityToolkit.Mvvm.Input;
namespace Bloxstrap.UI.ViewModels
{
public static class GlobalViewModel
{
public static ICommand OpenWebpageCommand => new RelayCommand<string>(OpenWebpage);
private static void OpenWebpage(string? location)
{
if (location is null)
return;
Utilities.ShellExecute(location);
}
}
}