src/Misc/EFTools/EntityDesign/VisualStudio/VsUtils.cs
// <summary>
//     Helper method to show an error message within the shell.  This should be used
//     instead of MessageBox.Show();
// </summary>
// <param name="serviceProvider">The service provider.</param>
// <param name="errorText">Text to display.</param>
Helper method to show an error message within the shell.  This should be used
instead of MessageBox.Show().
Helper method to show an error message within the shell . This should be used instead of MessageBox . Show () .
public static void ShowError(IServiceProvider serviceProvider, string errorText)
        {
            ShowMessageBox(
                serviceProvider, errorText, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST,
                OLEMSGICON.OLEMSGICON_CRITICAL);
        }
public static void ShowError ( IServiceProvider serviceProvider , string errorText ) { ShowMessageBox ( serviceProvider , errorText , OLEMSGBUTTON . OLEMSGBUTTON_OK , OLEMSGDEFBUTTON . OLEMSGDEFBUTTON_FIRST , OLEMSGICON . OLEMSGICON_CRITICAL ) ; }
Helper method to show an error message within the shell.
Helper method to show an error message within the shell .
serviceProvider
IServiceProvider
The service provider.
The service provider .
errorText
string
Text to display.
Text to display .