You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
642 B

  1. // OpenFile.cs created with MonoDevelop
  2. // User: sam at 23:05 03/10/2008
  3. //
  4. // To change standard headers go to Edit->Preferences->Coding->Standard Headers
  5. //
  6. using System;
  7. using Gtk;
  8. namespace ThePimp
  9. {
  10. public partial class OpenFile : Gtk.Dialog
  11. {
  12. public OpenFile()
  13. {
  14. this.Build();
  15. }
  16. public Pipi.Picture Load()
  17. {
  18. ResponseType rsp = (ResponseType)Run();
  19. Hide();
  20. if(rsp != ResponseType.Ok)
  21. return null;
  22. Pipi.Picture p = new Pipi.Picture(filechooserwidget1.Filename);
  23. return p;
  24. }
  25. }
  26. }