namespace System.Windows.Forms
{
+#if NET_2_0
+ [Designer ("System.Windows.Forms.Design.PrintDialogDesigner, " + Consts.AssemblySystem_Design,
+ "System.ComponentModel.Design.IDesigner")]
+#endif
[DefaultProperty("Document")]
public sealed class PrintDialog : CommonDialog {
PrintDocument document;
+#if NET_2_0
bool allow_current_page;
+#endif
bool allow_print_to_file;
bool allow_selection;
bool allow_some_pages;
public override void Reset ()
{
- current_settings = new PrinterSettings ();
+ current_settings = null;
AllowPrintToFile = true;
AllowSelection = false;
AllowSomePages = false;
}
#if NET_2_0
+ [DefaultValue (false)]
public bool AllowCurrentPage {
get {
return allow_current_page;
label.AutoSize = true;
label.Location = new Point (20, 100);
group_box_prn.Controls.Add (label);
+
+ label_where = new Label ();
+ label_where.AutoSize = true;
+ label_where.Location = new Point (80, 100);
+ group_box_prn.Controls.Add (label_where);
label = new Label ();
label.Text = "Comment:";
label_comment = new Label ();
label_comment.AutoSize = true;
label_comment.Location = new Point (80, 120);
+ group_box_prn.Controls.Add (label_comment);
radio_all = new RadioButton ();
radio_all.TabIndex = 21;
label_where.Text = port;
label_comment.Text = comment;
+ accept_button.Enabled = true;
}
catch {
+ accept_button.Enabled = false;
}
}
}