MainWindow.cs

  1. using System;
  2. using Gtk;
  3.  
  4. public partial class MainWindow : Gtk.Window
  5. {
  6. public MainWindow () : base(Gtk.WindowType.Toplevel)
  7. {
  8. Build ();
  9. }
  10.  
  11. protected void OnDeleteEvent (object sender, DeleteEventArgs a)
  12. {
  13. Application.Quit ();
  14. a.RetVal = true;
  15. }
  16. }
  17.  
  18.  

Proinf.net