Example #1
0
            public void ShowException(Gtk.Window parent, Exception e, string primaryText)
            {
                var errorDialog = new MonoDevelop.Ide.Gui.Dialogs.ErrorDialog(parent);

                try {
                    errorDialog.Message = primaryText;
                    errorDialog.AddDetails(e.ToString(), false);
                    PlaceDialog(errorDialog, parent);
                    errorDialog.Run();
                } finally {
                    errorDialog.Destroy();
                }
            }
			public void ShowException (Gtk.Window parent, Exception e, string primaryText)
			{
				var errorDialog = new MonoDevelop.Ide.Gui.Dialogs.ErrorDialog (parent);
				try {
					errorDialog.Message = primaryText;
					errorDialog.AddDetails (e.ToString (), false);
					PlaceDialog (errorDialog, parent);
					errorDialog.Run ();
				} finally {
					errorDialog.Destroy ();
				}
			}