Esempio n. 1
0
        public frmMsgBox(string title, string message, MsgboxButtonStyle buttonStyle, MsgboxIconStyle icon)
        {
            InitializeComponent();

            this.Text       = title;
            lblMessage.Text = message;

            this.buttonStyle = buttonStyle;
            this.iconStyle   = icon;

            ApplyImage();
            AdjustButtons();
            AdjustSizes();
        }
Esempio n. 2
0
 public static MsgboxResult Show(string message, MsgboxButtonStyle buttonStyle, MsgboxIconStyle iconStyle)
 {
     return(Show(defaultTitle, message, buttonStyle, iconStyle));
 }
Esempio n. 3
0
        public static MsgboxResult Show(string title, string message, MsgboxButtonStyle buttonStyle, MsgboxIconStyle iconStyle)
        {
            frmMsgBox frm = new frmMsgBox(title, message, buttonStyle, iconStyle);

            return(ToMsgboxResult(frm.ShowDialog()));
        }