/// <summary>Shows a message of the specified message type, using an appropriate sound and image.</summary> public static int Show(string message, string caption, DlgType type, DlgMessageFormat format, params string[] buttons) { return(new DlgMessage() { Message = message, Caption = caption, Type = type, Buttons = buttons, Format = format }.Show()); }
/// <summary>Shows a message of the specified message type, using an appropriate caption, sound and image.</summary> public static int Show(string message, DlgType type) { return(new DlgMessage() { Message = message, Type = type }.Show()); }
internal static Bitmap GetDefaultImage(DlgType type) { var img = DefaultImage[(int)type]; if (img != null) { return(img); } switch (type) { case DlgType.Info: return(_resources.Info); case DlgType.Question: return(_resources.Question); case DlgType.Warning: return(_resources.Warning); case DlgType.Error: return(_resources.Error); } return(null); }
internal static Bitmap GetDefaultImage(DlgType type) { var img = DefaultImage[(int) type]; if (img != null) return img; switch (type) { case DlgType.Info: return _resources.Info; case DlgType.Question: return _resources.Question; case DlgType.Warning: return _resources.Warning; case DlgType.Error: return _resources.Error; } return null; }
/// <summary>Shows a message of the specified message type, using an appropriate sound and image.</summary> public static int Show(string message, string caption, DlgType type, DlgMessageFormat format, params string[] buttons) { return new DlgMessage() { Message = message, Caption = caption, Type = type, Buttons = buttons, Format = format }.Show(); }
/// <summary>Shows a message of the specified message type, using an appropriate caption, sound and image.</summary> public static int Show(string message, DlgType type) { return new DlgMessage() { Message = message, Type = type }.Show(); }