private void ExcepcionDesconocida(GLib.UnhandledExceptionArgs e) { #if DEBUG Console.WriteLine(e.ToString()); #endif Dialog dialog = new Dialog("Excepcion", this, Gtk.DialogFlags.DestroyWithParent); dialog.Modal = true; dialog.Resizable = false; Gtk.Label etiqueta = new Gtk.Label(); etiqueta.Markup = "Ha ocurrido un error."; dialog.BorderWidth = 8; dialog.VBox.BorderWidth = 8; dialog.VBox.PackStart(etiqueta, false, false, 0); dialog.AddButton ("Cerrar", ResponseType.Close); dialog.ShowAll(); dialog.Run (); dialog.Destroy (); }