2024-10-08 09:53:24 +03:00
|
|
|
|
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);
|
|
|
|
|
}
|
2024-10-08 15:14:10 +03:00
|
|
|
|
|
|
|
|
|
public static DialogResult ShowQuestMessage(string message)
|
|
|
|
|
{
|
2024-10-10 11:47:27 +03:00
|
|
|
|
return MessageBox.Show(message, "Информация", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
|
2024-10-08 15:14:10 +03:00
|
|
|
|
}
|
2024-10-08 09:53:24 +03:00
|
|
|
|
}
|
|
|
|
|
}
|