+2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
+
+ * PrintControllerWithStatusDialog.cs: Update page number in dialog.
+
2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
* PrintDialog.cs: Added attributes and set default property values.
PrintController underlyingController;
string dialogTitle;
PrintingDialog dialog;
+ int currentPage;
#endregion // Local variables
#region Public Constructors\r
e.Cancel = true;\r
dialog.Close();\r
}\r
+ dialog.LabelText = string.Format("Page {0} of document", ++currentPage);\r
return base.OnStartPage (document, e);\r
}\r
\r
public override void OnStartPrint(PrintDocument document, PrintEventArgs e) {\r
+ currentPage = 0;\r
dialog.Show();\r
base.OnStartPrint (document, e);\r
}\r
Text = "Printing";\r
ResumeLayout(false);\r
}\r
+\r
+ public string LabelText {\r
+ get { return label.Text; }\r
+ set { label.Text = value; }\r
+ }\r
}\r
#endregion Internal Class\r
}\r