mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 16:41:36 -07:00
cleanup necessary namespaces and adjust namespaces for certain classes to better represent what they're for models, helpers and tools are all different and shouldnt really be under the same namespace
22 lines
492 B
C#
22 lines
492 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);
|
|
}
|
|
}
|
|
}
|