Author: joncham
Date: 2006-01-09 23:07:59 -0500 (Mon, 09 Jan 2006)
New Revision: 55281
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintDialog.cs
Log:
2006-01-9 Jonathan Chambers <[EMAIL PROTECTED]>
* PrintDialog.cs: Added attributes and set default property values.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-10 03:59:45 UTC (rev 55280)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-10 04:07:59 UTC (rev 55281)
@@ -1,5 +1,9 @@
2006-01-9 Jonathan Chambers <[EMAIL PROTECTED]>
+ * PrintDialog.cs: Added attributes and set default property values.
+
+2006-01-9 Jonathan Chambers <[EMAIL PROTECTED]>
+
* PrintControllerWithStatusDialog.cs:
Added PrintControllerWithStatusDialog.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintDialog.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintDialog.cs
2006-01-10 03:59:45 UTC (rev 55280)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintDialog.cs
2006-01-10 04:07:59 UTC (rev 55281)
@@ -19,6 +19,10 @@
//
// Copyright (c) 2005 Novell, Inc.
//
+// Authors:
+// Someone
+// Jonathan Chambers ([EMAIL PROTECTED])
+//
using System;
using System.ComponentModel;
@@ -32,6 +36,7 @@
namespace System.Windows.Forms
{
+
public sealed class PrintDialog : CommonDialog {
PrintDocument document;
PrinterSettings printer_settings;
@@ -45,6 +50,8 @@
public PrintDialog ()
{
+ allow_print_to_file = true;
+ show_network = true;
}
public override void Reset ()
@@ -63,6 +70,7 @@
}
#endif
+ [DefaultValue(true)]
public bool AllowPrintToFile {
get {
return allow_print_to_file;
@@ -73,6 +81,7 @@
}
}
+ [DefaultValue(false)]
public bool AllowSelection {
get {
return allow_selection;
@@ -83,6 +92,7 @@
}
}
+ [DefaultValue(false)]
public bool AllowSomePages {
get {
return allow_some_pages;
@@ -93,6 +103,7 @@
}
}
+ [DefaultValue(null)]
public PrintDocument Document {
get {
return document;
@@ -103,6 +114,9 @@
}
}
+ [Browsable(false)]
+ [DefaultValue(null)]
+
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public PrinterSettings PrinterSettings {
get {
return printer_settings;
@@ -113,6 +127,7 @@
}
}
+ [DefaultValue(false)]
public bool PrintToFile {
get {
return print_to_file;
@@ -123,6 +138,7 @@
}
}
+ [DefaultValue(true)]
public bool ShowNetwork {
get {
return show_network;
@@ -133,6 +149,7 @@
}
}
+ [DefaultValue(false)]
public bool ShowHelp {
get {
return show_help;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches