Ejemplo n.º 1
0
        public VSConstants.MessageBoxResult ShowMessageBox(string messageBoxText, OLEMSGBUTTON button, OLEMSGICON icon, OLEMSGDEFBUTTON defaultButton)
        {
            var parameter = new MessageBoxParameter();

            parameter.Text            = messageBoxText;
            parameter.Title           = string.Empty; // This is NOT window title. It is the constant "Microsoft Visual Studio".
            parameter.Button          = button;
            parameter.Icon            = icon;
            parameter.DefaultButton   = defaultButton;
            MessageBoxParameter.Value = parameter;
            return(parameter.Result);
        }
Ejemplo n.º 2
0
 public VSConstants.MessageBoxResult ShowMessageBox(string messageBoxText, OLEMSGBUTTON button, OLEMSGICON icon, OLEMSGDEFBUTTON defaultButton)
 {
     var parameter = new MessageBoxParameter();
     parameter.Text = messageBoxText;
     parameter.Title = string.Empty; // This is NOT window title. It is the constant "Microsoft Visual Studio".
     parameter.Button = button;
     parameter.Icon = icon;
     parameter.DefaultButton = defaultButton;
     MessageBoxParameter.Value = parameter;
     return parameter.Result;
 }