GtaVUsersInfo/Helpers/ErrorsShow.cs

30 lines
895 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GtaVUsersInfo.Helpers
{
public static class ErrorsShow
{
public static void ShowErrorMessage(string message)
{
MessageBox.Show(message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
Console.WriteLine(message);
}
public static void ShowInfoMessage(string message)
{
MessageBox.Show(message, "Информация", MessageBoxButtons.OK, MessageBoxIcon.Information);
Console.WriteLine(message);
}
public static DialogResult ShowQuestMessage(string message)
{
return MessageBox.Show(message, "Информация", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
}
}
}