bloxstrap/Bloxstrap/ViewModels/GlobalViewModel.cs
pizzaboxer 606aadda97
Turn DeployManager from singleton to helper
this really did not need to be oop lol
2023-04-29 23:55:43 +01:00

21 lines
491 B
C#

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