Add project files.

This commit is contained in:
Enstrayed
2025-02-03 16:08:49 -08:00
parent 01f778bf58
commit 5d59bc8ecd
21 changed files with 478 additions and 0 deletions

28
UIFunctions.cs Normal file
View File

@@ -0,0 +1,28 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Foundation.Metadata;
namespace APIToolkit
{
public class UIFunctions
{
public static void ShowError(XamlRoot parent, string message)
{
ContentDialog ThisDialog = new ContentDialog();
ThisDialog.XamlRoot = parent;
ThisDialog.Title = "Error";
ThisDialog.PrimaryButtonText = "Dismiss";
ThisDialog.Content = message;
ThisDialog.DefaultButton = ContentDialogButton.Primary;
var result = ThisDialog.ShowAsync();
}
}
}