Example #1
0
 protected override bool RunDefault()
 {
     using (var errorDialog = new MonoDevelop.Ide.Gui.Dialogs.GtkErrorDialog(TransientFor, Title, Message, Buttons)) {
         errorDialog.AddDetails(Exception.ToString(), false);
         int result = MonoDevelop.Ide.MessageService.ShowCustomDialog(errorDialog);
         ResultButton = result >= 0 ? Buttons [result] : null;
     }
     return(true);
 }
Example #2
0
        protected override bool RunDefault()
        {
            var errorDialog = new MonoDevelop.Ide.Gui.Dialogs.GtkErrorDialog(TransientFor);

            errorDialog.Message = Message;
            errorDialog.AddDetails(Exception.ToString(), false);
            MonoDevelop.Ide.MessageService.ShowCustomDialog(errorDialog, TransientFor);
            return(true);
        }
Example #3
0
        protected override bool RunDefault()
        {
            var errorDialog = new MonoDevelop.Ide.Gui.Dialogs.GtkErrorDialog(TransientFor);

            errorDialog.Message = Message;
            errorDialog.AddDetails(Exception.ToString(), false);
            errorDialog.Buttons = Buttons;
            int result = MonoDevelop.Ide.MessageService.ShowCustomDialog(errorDialog, TransientFor);

            ResultButton = result >= 0 ? Buttons [result] : null;
            return(true);
        }