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(); }
public static MsgboxResult Show(string message, MsgboxButtonStyle buttonStyle, MsgboxIconStyle iconStyle) { return(Show(defaultTitle, message, buttonStyle, iconStyle)); }
public static MsgboxResult Show(string title, string message, MsgboxButtonStyle buttonStyle, MsgboxIconStyle iconStyle) { frmMsgBox frm = new frmMsgBox(title, message, buttonStyle, iconStyle); return(ToMsgboxResult(frm.ShowDialog())); }