diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-05-06 04:05:13 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-05-06 04:05:13 +0400 |
commit | 591a66be925fba04e56ef74edc2d11a44a8839a8 (patch) | |
tree | 772a1bfa05167baf431c64f81ea513c9fa837f40 /mcs/class/System.Windows.Forms/Gtk/Form.cs | |
parent | 506ccff8d59db68b1b5f04bd928d895f5c520bd7 (diff) |
More work, demo works
svn path=/trunk/mcs/; revision=4325
Diffstat (limited to 'mcs/class/System.Windows.Forms/Gtk/Form.cs')
-rw-r--r-- | mcs/class/System.Windows.Forms/Gtk/Form.cs | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/mcs/class/System.Windows.Forms/Gtk/Form.cs b/mcs/class/System.Windows.Forms/Gtk/Form.cs index 2ebc99e4707..7f678c541c1 100644 --- a/mcs/class/System.Windows.Forms/Gtk/Form.cs +++ b/mcs/class/System.Windows.Forms/Gtk/Form.cs @@ -23,10 +23,24 @@ namespace System.Windows.Forms { { } + void delete_cb (object o, EventArgs args) + { + SignalArgs sa = (SignalArgs) args; + + //if (Closing != null) + //Closing (o, args); + + if (Closed != null) + Closed (o, args); + + sa.RetVal = false; + } + internal override Widget CreateWidget () { win = new Window (WindowType.Toplevel); + win.DeleteEvent += new EventHandler (delete_cb); win.Title = Text; return (Widget) win; } @@ -493,24 +507,11 @@ namespace System.Windows.Forms { // throw new NotImplementedException (); // } //} - // [MonoTODO] - // public event EventHandrel Closed { - // add { - // throw new NotImplementedException (); - // } - // remove { - // throw new NotImplementedException (); - // } - //} - // [MonoTODO] - // public event CancelEventHandler Closing { - // add { - // throw new NotImplementedException (); - // } - // remove { - // throw new NotImplementedException (); - // } - //} + + public event EventHandler Closed; + + // public event CancelEventHandler Closing; + // [MonoTODO] // public event EventHandler Deactivate { // add { |