Beispiel #1
0
        public void PopupException(GalleryCommandException e, Gtk.Dialog d)
        {
            System.Console.WriteLine(String.Format("{0} : {1} ({2})", e.Message, e.ResponseText, e.Status));
            HigMessageDialog md =
                new HigMessageDialog(d,
                                     Gtk.DialogFlags.Modal |
                                     Gtk.DialogFlags.DestroyWithParent,
                                     Gtk.MessageType.Error, Gtk.ButtonsType.Ok,
                                     Catalog.GetString("Error while creating new album"),
                                     String.Format(Catalog.GetString("The following error was encountered while attempting to perform the requested operation:\n{0} ({1})"), e.Message, e.Status));

            md.Run();
            md.Destroy();
        }
		public void PopupException (GalleryCommandException e, Gtk.Dialog d)
		{
			System.Console.WriteLine(String.Format ("{0} : {1} ({2})", e.Message, e.ResponseText, e.Status));
			HigMessageDialog md =
				new HigMessageDialog (d,
						      Gtk.DialogFlags.Modal |
						      Gtk.DialogFlags.DestroyWithParent,
						      Gtk.MessageType.Error, Gtk.ButtonsType.Ok,
						      Catalog.GetString ("Error while creating new album"),
						      String.Format (Catalog.GetString ("The following error was encountered while attempting to perform the requested operation:\n{0} ({1})"), e.Message, e.Status));
			md.Run ();
			md.Destroy ();
		}