2006-11-17 Chris Toshok <toshok@ximian.com>
commit1be893ed61a561d39082c7cbf84605c91ab11778
authorChris Toshok <toshok@novell.com>
Fri, 17 Nov 2006 17:38:51 +0000 (17 17:38 -0000)
committerChris Toshok <toshok@novell.com>
Fri, 17 Nov 2006 17:38:51 +0000 (17 17:38 -0000)
tree783b3f21fa0055ba9eaf41dfdbea113ccd2e0063
parentb4635e7f45e231b3b4ec59131c9992dd45ed3fd1
2006-11-17  Chris Toshok  <toshok@ximian.com>

[ fixes the exit/crashes associated with #79835.  it's clearly
suboptimal though, we need to figure out a better way to solve
this. ]

* PrintPreviewControl.cs: deal with the new invalid printer
exceptions.

* PageSetupDialog.cs: if the printer is invalid, pop up a dialog
and return false (so CommonDialog.ShowDialog doesn't actually show
the form.)

* PrintDialog.cs: enable/disable the Ok button depending on
whether or not the printer is valid.

* CommonDialog.cs (ShowDialog): only actually show the form if
RunDialog returns true.

svn path=/trunk/mcs/; revision=68068
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/PageSetupDialog.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintDialog.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewControl.cs