Esempio n. 1
0
 /// <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());
 }
Esempio n. 2
0
 /// <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());
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 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;
 }
Esempio n. 5
0
 /// <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();
 }
Esempio n. 6
0
 /// <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();
 }