public SLMessageWindow(string message, string title, SLMessageWindowButton buttons, SLMessageWindowType messageType)
        {
            InitializeComponent();

            InitializeEventHandlers();

            this.Message = message;
            this.MessageType = messageType;
            this.Title = title;
            this.DialogResult = SLMessageWindowResult.None;
            this.Buttons = buttons;
        }
 public SLMessageWindow(string message, string title, SLMessageWindowType messageType)
     : this(message, title, SLMessageWindowButton.OK, messageType)
 {
 }
 private void SetMessageType(SLMessageWindowType messageType)
 {
     _messageType = messageType;
     switch (_messageType)
     {
         case SLMessageWindowType.Information:
             imgMessageType.Source = IMAGEINFORMATION;
             break;
         case SLMessageWindowType.Error:
             imgMessageType.Source = IMAGEERROR;
             break;
         case SLMessageWindowType.Warning:
             imgMessageType.Source = IMAGEWARNING;
             break;
         default:
             imgMessageType.Source = IMAGEINFORMATION;
             break;
     }
 }
 public SLMessageWindow(string message, SLMessageWindowType messageType)
     : this(message, DEFAULTTITLE, SLMessageWindowButton.OK, messageType)
 {
 }
 public static void Display(string message, string title, SLMessageWindowType messageType)
 {
     (new SLMessageWindow(message, title, messageType) as ChildWindow).Show();
 }