コード例 #1
0
        public static DialogResult Show(string text, string title = "", string detail = "", RageMessageBoxButtons buttons = RageMessageBoxButtons.OK, RageMessageBoxIcon icon = RageMessageBoxIcon.RageMild)
        {
            var messageBox = new RageMessageBoxForm();
            messageBox.InitializeButtons(buttons);
            messageBox.InitializeIcon(icon);
            messageBox.lblMessage.Text = text;
            messageBox.txtDetail.Text = detail;
            messageBox.Text = title;
            messageBox.InitializeDialogLayout();

            messageBox.ShowDialog();
            return messageBox.Result;
        }
コード例 #2
0
        public static DialogResult Show(string text, string title = "", string detail = "", RageMessageBoxButtons buttons = RageMessageBoxButtons.OK, RageMessageBoxIcon icon = RageMessageBoxIcon.RageMild)
        {
            var messageBox = new RageMessageBoxForm();

            messageBox.InitializeButtons(buttons);
            messageBox.InitializeIcon(icon);
            messageBox.lblMessage.Text = text;
            messageBox.txtDetail.Text  = detail;
            messageBox.Text            = title;
            messageBox.InitializeDialogLayout();

            messageBox.ShowDialog();
            return(messageBox.Result);
        }