2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
authorPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Thu, 25 May 2006 18:53:10 +0000 (18:53 -0000)
committerPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Thu, 25 May 2006 18:53:10 +0000 (18:53 -0000)
commita85bfa29e2426e49507362f72787ca8eb6298f66
tree2186a7fc6025665c609cf24397ea45cb3392383a
parentf1656131aaf258416802ee126ff5d9080d26d244
2006-05-25  Peter Dennis Bartok  <pbartok@novell.com>

* Application.cs: Moved setting of is_modal and closing to before
  we create the control, to allow the event handlers called as a
  result of creation affect closing. Also removed Gonzalo's previous
  change to setting DialogResult, the behaviour has been moved to
  Form.ShowDialog()
* Form.cs:
  - ShowDialog(): Removed explicit creation of the form, let RunLoop
    handle it instead
  - ShowDialog(): If no dialog result is set, we need to return Cancel
  - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
    the close is cancelled

svn path=/trunk/mcs/; revision=61132
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs