using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Forms; using System.Threading.Tasks; namespace Item_Creator { class Utility { public static bool CheckIntValid(string Number) { try { int.Parse(Number); return true; } catch { return false; } } public static void Message(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.OK, MessageBoxIcon.Information); } public static bool Question(string Message, string Title) { DialogResult Result = new DialogResult(); Result = MessageBox.Show(Message, Title, MessageBoxButtons.OK, MessageBoxIcon.Information); if(Result == DialogResult.OK) { return true; } else { return false; } } } }