mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-26 10:25:47 +00:00
Refactor Import structure
This commit is contained in:
19
PckStudio.Core/Extensions/MessageBoxEx.cs
Normal file
19
PckStudio.Core/Extensions/MessageBoxEx.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace PckStudio.Core.Extensions
|
||||
{
|
||||
public static class MessageBoxEx
|
||||
{
|
||||
public static MessageBoxResult Show(string messageBoxText, string title, MessageBoxButton button, MessageBoxImage icon) => MessageBox.Show(messageBoxText, title, button, icon);
|
||||
|
||||
public static void ShowError(string messageBoxText, string title) => Show(messageBoxText, title, MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
public static MessageBoxResult ShowWarning(string messageBoxText, string title, MessageBoxButton button) => Show(messageBoxText, title, button, MessageBoxImage.Warning);
|
||||
public static MessageBoxResult AskQuestion(string question, string title, MessageBoxButton button) => Show(question, title, button, MessageBoxImage.Question);
|
||||
public static MessageBoxResult ShowInfo(string messageBoxText, string title) => Show(messageBoxText, title, MessageBoxButton.OK, MessageBoxImage.Information);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user