using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
namespace Aitex.Core.UI.Dialog
{
public class MessageBoxEx
{
///
/// show information dialog
///
/// information title string
/// information content string
public static void ShowInfo(string infoTitle, string infoContent)
{
NotificationDialog dlg = new NotificationDialog() { MessageTitle = infoTitle, MessageContent = infoContent, BannerColor = Brushes.DodgerBlue };
dlg.Show();
}
///
/// show warning dialog
///
/// information title string
/// information content string
public static void ShowWarning(string infoTitle, string infoContent)
{
NotificationDialog dlg = new NotificationDialog() { MessageTitle = infoTitle, MessageContent = infoContent, BannerColor = Brushes.Gold };
dlg.Show();
}
///
/// show error dialog
///
/// information title string
/// information content string
public static void ShowError(string infoTitle, string infoContent)
{
NotificationDialog dlg = new NotificationDialog() { MessageTitle = infoTitle, MessageContent = infoContent, BannerColor = Brushes.Red };
dlg.Show();
}
}
}