src/Misc/EFTools/EntityDesign/VisualStudio/VsUtils.cs
// <summary>
//     Helper method to show a message box within the shell.
// </summary>
// <param name="serviceProvider"></param>
// <param name="messageText">Text to show.</param>
// <param name="messageButtons">Buttons which should appear in the dialog.</param>
// <param name="defaultButton">Default button (invoked when user presses return).</param>
// <param name="messageIcon">Icon (warning, error, informational, etc.) to display</param>
// <returns>result corresponding to the button clicked by the user.</returns>
Helper method to show a message box within the shell.
Helper method to show a message box within the shell .
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1614:ElementParameterDocumentationMustHaveText")]
        public static DialogResult ShowMessageBox(
            IServiceProvider serviceProvider, string messageText, OLEMSGBUTTON messageButtons, OLEMSGDEFBUTTON defaultButton,
            OLEMSGICON messageIcon)
        {
            return ShowMessageBox(serviceProvider, messageText, null, messageButtons, defaultButton, messageIcon);
        }
[ SuppressMessage ( " " , " " ) ] public static DialogResult ShowMessageBox ( IServiceProvider serviceProvider , string messageText , OLEMSGBUTTON messageButtons , OLEMSGDEFBUTTON defaultButton , OLEMSGICON messageIcon ) { return ShowMessageBox ( serviceProvider , messageText , null , messageButtons , defaultButton , messageIcon ) ; }
Helper method to show a message box within the shell.
Helper method to show a message box within the shell .
result corresponding to the button clicked by the user.
result corresponding to the button clicked by the user .
serviceProvider
IServiceProvider
None
messageText
string
Text to show.
Text to show .
messageButtons
OLEMSGBUTTON
Buttons which should appear in the dialog.
Buttons which should appear in the dialog .
defaultButton
OLEMSGDEFBUTTON
Default button (invoked when user presses return).
Default button ( invoked when user presses return ) .
messageIcon
OLEMSGICON
Icon (warning, error, informational, etc.) to display
Icon ( warning error informational etc . ) to display