mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 10:31:26 -07:00
24 lines
648 B
C#
24 lines
648 B
C#
using System.Windows;
|
|
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;
|
|
|
|
public static Visibility ShowDebugStuff => App.Settings.Prop.OhHeyYouFoundMe ? Visibility.Visible : Visibility.Collapsed;
|
|
|
|
private static void OpenWebpage(string? location)
|
|
{
|
|
if (location is null)
|
|
return;
|
|
|
|
Utilities.ShellExecute(location);
|
|
}
|
|
}
|
|
}
|