Author: joncham
Date: 2006-01-09 23:18:52 -0500 (Mon, 09 Jan 2006)
New Revision: 55282
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintControllerWithStatusDialog.cs
Log:
2006-01-9 Jonathan Chambers <[EMAIL PROTECTED]>
* PrintControllerWithStatusDialog.cs: Update page number in dialog.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-10 04:07:59 UTC (rev 55281)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-10 04:18:52 UTC (rev 55282)
@@ -1,5 +1,9 @@
2006-01-9 Jonathan Chambers <[EMAIL PROTECTED]>
+ * PrintControllerWithStatusDialog.cs: Update page number in dialog.
+
+2006-01-9 Jonathan Chambers <[EMAIL PROTECTED]>
+
* PrintDialog.cs: Added attributes and set default property values.
2006-01-9 Jonathan Chambers <[EMAIL PROTECTED]>
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintControllerWithStatusDialog.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintControllerWithStatusDialog.cs
2006-01-10 04:07:59 UTC (rev 55281)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintControllerWithStatusDialog.cs
2006-01-10 04:18:52 UTC (rev 55282)
@@ -35,6 +35,7 @@
PrintController underlyingController;
string dialogTitle;
PrintingDialog dialog;
+ int currentPage;
#endregion // Local variables
#region Public Constructors
@@ -71,10 +72,12 @@
e.Cancel = true;
dialog.Close();
}
+ dialog.LabelText = string.Format("Page {0} of
document", ++currentPage);
return base.OnStartPage (document, e);
}
public override void OnStartPrint(PrintDocument document,
PrintEventArgs e) {
+ currentPage = 0;
dialog.Show();
base.OnStartPrint (document, e);
}
@@ -115,6 +118,11 @@
Text = "Printing";
ResumeLayout(false);
}
+
+ public string LabelText {
+ get { return label.Text; }
+ set { label.Text = value; }
+ }
}
#endregion Internal Class
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches