bloxstrap/Bloxstrap/UI/ViewModels/GlobalViewModel.cs
pizzaboxer 94fe52245e
Refactor UI code structuring
109 changed files :D
2023-07-02 13:10:04 +01:00

21 lines
495 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);
public static bool IsNotFirstRun => !App.IsFirstRun;
private static void OpenWebpage(string? location)
{
if (location is null)
return;
Utilities.ShellExecute(location);
}
}
}