Esempio 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);
        }
Esempio 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;
 }