You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ShopNCook/UserNotifier.cs

41 lines
908 B

using CommunityToolkit.Maui.Views;
using ShoopNCook.Views.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShoopNCook
{
internal class UserNotifier
{
private static void Show(NoticePopup popup)
{
var page = Shell.Current.CurrentPage;
page.ShowPopup(new Popup
{
Content = popup
});
}
public static void Error(string message)
{
Show(new NoticePopup());
}
public static void Warn(string message)
{
Show(new NoticePopup());
}
public static void Notice(string message)
{
Show(new NoticePopup());
}
public static void Success(string message)
{
Show(new NoticePopup());
}
}
}