mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 02:21:27 -07:00
27 lines
632 B
C#
27 lines
632 B
C#
using Bloxstrap.Helpers;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.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);
|
|
}
|
|
}
|
|
}
|