Init() защищенный Метод

Sets up the form.
protected Init ( string p_strMessage, string p_strCaption, string p_strDetails, ExtendedMessageBoxButtons p_ebbButtons, MessageBoxIcon p_mbiIcon, bool p_booShowRemember ) : void
p_strMessage string The message to display.
p_strCaption string The windows title.
p_strDetails string The HTML-formatted details.
p_ebbButtons ExtendedMessageBoxButtons The extended buttons to display.
p_mbiIcon MessageBoxIcon The icon to display.
p_booShowRemember bool Whether to display the remember selection checkbox.
Результат void
Пример #1
0
        /// <summary>
        /// Shows the message box.
        /// </summary>
        /// <param name="p_ctlParent">The parent of the message box.</param>
        /// <param name="p_strMessage">The message to display.</param>
        /// <param name="p_strCaption">The windows title.</param>
        /// <param name="p_strDetails">The HTML-formatted details to display.</param>
        /// <param name="p_ebbButtons">The extended buttons to display.</param>
        /// <param name="p_mbiIcon">The icon to display.</param>
        public static DialogResult Show(Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, ExtendedMessageBoxButtons p_ebbButtons, MessageBoxIcon p_mbiIcon)
        {
            ExtendedMessageBox mbxBox = new ExtendedMessageBox();

            mbxBox.Init(p_strMessage, p_strCaption, p_strDetails, p_ebbButtons, p_mbiIcon, false);
            return(Show(mbxBox, p_ctlParent));
        }
		/// <summary>
		/// Shows the message box.
		/// </summary>
		/// <param name="p_ctlParent">The parent of the message box.</param>
		/// <param name="p_strMessage">The message to display.</param>
		/// <param name="p_strCaption">The windows title.</param>
		/// <param name="p_strDetails">The HTML-formatted details to display.</param>
		/// <param name="p_mbbButtons">The buttons to display.</param>
		/// <param name="p_mbiIcon">The icon to display.</param>
		/// <param name="p_booRemember">Indicates whether the selected button should be remembered.</param>
		public static DialogResult Show(Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon, out bool p_booRemember)
		{
			ExtendedMessageBox mbxBox = new ExtendedMessageBox();
			mbxBox.Init(p_strMessage, p_strCaption, p_strDetails, p_mbbButtons, p_mbiIcon, true);
			DialogResult drsResult = Show(mbxBox, p_ctlParent);
			p_booRemember = mbxBox.RememberSelection;
			return drsResult;
		}
Пример #3
0
		/// <summary>
		/// Shows the message box.
		/// </summary>
		/// <param name="p_ctlParent">The parent of the message box.</param>
		/// <param name="p_strMessage">The message to display.</param>
		/// <param name="p_strCaption">The windows title.</param>
		/// <param name="p_strDetails">The HTML-formatted details to display.</param>
		/// <param name="p_mbbButtons">The buttons to display.</param>
		/// <param name="p_mbiIcon">The icon to display.</param>
		/// <param name="p_booRemember">Indicates whether the selected button should be remembered.</param>
		public static DialogResult Show(Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon, out bool p_booRemember)
		{
			ExtendedMessageBox mbxBox = new ExtendedMessageBox();
			mbxBox.Init(p_strMessage, p_strCaption, p_strDetails, p_mbbButtons, p_mbiIcon, true);
			DialogResult drsResult = Show(mbxBox, p_ctlParent);
			p_booRemember = mbxBox.RememberSelection;
			return drsResult;
		}
Пример #4
0
		/// <summary>
		/// Shows the message box.
		/// </summary>
		/// <param name="p_ctlParent">The parent of the message box.</param>
		/// <param name="p_strMessage">The message to display.</param>
		/// <param name="p_strCaption">The windows title.</param>
		/// <param name="p_strDetails">The HTML-formatted details to display.</param>
		/// <param name="p_intMinWidth">The minimum width of the message box.</param>
		/// <param name="p_intDetailHeight">The initial height of the details section.</param>
		/// <param name="p_mbbButtons">The buttons to display.</param>
		/// <param name="p_mbiIcon">The icon to display.</param>
		public static DialogResult Show(Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, Int32 p_intMinWidth, Int32 p_intDetailHeight, ExtendedMessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon)
		{
			ExtendedMessageBox mbxBox = new ExtendedMessageBox();
			mbxBox.MinimumSize = new Size(p_intMinWidth, mbxBox.MinimumSize.Height);
			mbxBox.LastDetailsHeight = p_intDetailHeight;
			mbxBox.Init(p_strMessage, p_strCaption, p_strDetails, p_mbbButtons, p_mbiIcon, false, true);
			return Show(mbxBox, p_ctlParent);
		}
		/// <summary>
		/// Shows the message box.
		/// </summary>
		/// <param name="p_ctlParent">The parent of the message box.</param>
		/// <param name="p_strMessage">The message to display.</param>
		/// <param name="p_strCaption">The windows title.</param>
		/// <param name="p_strDetails">The HTML-formatted details to display.</param>
		/// <param name="p_ebbButtons">The extended buttons to display.</param>
		/// <param name="p_mbiIcon">The icon to display.</param>
		public static DialogResult Show(Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, ExtendedMessageBoxButtons p_ebbButtons, MessageBoxIcon p_mbiIcon)
		{
			ExtendedMessageBox mbxBox = new ExtendedMessageBox();
			mbxBox.Init(p_strMessage, p_strCaption, p_strDetails, p_ebbButtons, p_mbiIcon, false);
			return Show(mbxBox, p_ctlParent);
		}
		/// <summary>
		/// Shows the message box.
		/// </summary>
		/// <param name="p_ctlParent">The parent of the message box.</param>
		/// <param name="p_strMessage">The message to display.</param>
		/// <param name="p_strCaption">The windows title.</param>
		/// <param name="p_strDetails">The HTML-formatted details to display.</param>
		/// <param name="p_intMinWidth">The minimum width of the message box.</param>
		/// <param name="p_intDetailHeight">The initial height of the details section.</param>
		/// <param name="p_mbbButtons">The buttons to display.</param>
		/// <param name="p_mbiIcon">The icon to display.</param>
		public static DialogResult Show(Control p_ctlParent, string p_strMessage, string p_strCaption, string p_strDetails, Int32 p_intMinWidth, Int32 p_intDetailHeight, MessageBoxButtons p_mbbButtons, MessageBoxIcon p_mbiIcon)
		{
			ExtendedMessageBox mbxBox = new ExtendedMessageBox();
			mbxBox.MinimumSize = new Size(p_intMinWidth, mbxBox.MinimumSize.Height);
			mbxBox.LastDetailsHeight = p_intDetailHeight;
			mbxBox.Init(p_strMessage, p_strCaption, p_strDetails, p_mbbButtons, p_mbiIcon, false);
			return Show(mbxBox, p_ctlParent);
		}