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.
 
 
 
 
 
 

38 regels
932 B

  1. // MainWindow.cs created with MonoDevelop
  2. // User: sam at 10:31 AM 9/2/2008
  3. //
  4. // To change standard headers go to Edit->Preferences->Coding->Standard Headers
  5. //
  6. using System;
  7. using Gtk;
  8. using Pipi;
  9. public partial class MainWindow: Gtk.Window
  10. {
  11. public MainWindow (): base (Gtk.WindowType.Toplevel)
  12. {
  13. Build ();
  14. Title += " v" + Libpipi.getVersion();
  15. }
  16. protected void OnDeleteEvent (object sender, DeleteEventArgs a)
  17. {
  18. Application.Quit ();
  19. a.RetVal = true;
  20. }
  21. protected virtual void OnOpenActionActivated (object sender, System.EventArgs e)
  22. {
  23. Pimp.OpenFile open = new Pimp.OpenFile();
  24. ResponseType rsp = (ResponseType)open.Run();
  25. open.Destroy();
  26. if(rsp == ResponseType.Ok)
  27. return;
  28. }
  29. protected virtual void OnQuitActionActivated (object sender, System.EventArgs e)
  30. {
  31. Application.Quit ();
  32. }
  33. }