public override void SetElement(PdfProjectElement ppe) { this.ppp = (PdfProjectPdf)ppe; this.textBox1.Text = this.ppp.Pages; this.radioButtonIncludeAllPages.Checked = ppp.IncludeAllPages; this.radioButtonIncludePageRange.Checked = !ppp.IncludeAllPages; this.timer1_Tick(null, null); if (ppe.Error == null) { this.label1.Text = "PDF of " + ppp.PageCount + " pages."; } else { this.label1.Text = ppe.Error; } }
public override void SetElement(PdfProjectElement ppe) { this.ppp=(PdfProjectPdf)ppe; this.textBox1.Text = this.ppp.Pages; this.radioButtonIncludeAllPages.Checked = ppp.IncludeAllPages; this.radioButtonIncludePageRange.Checked = !ppp.IncludeAllPages; this.timer1_Tick(null, null); if (ppe.Error == null) { this.label1.Text = "PDF of " + ppp.PageCount + " pages."; } else { this.label1.Text = ppe.Error; } }
private void timer1_Tick(object sender, EventArgs e) { this.timer1.Stop(); string newSelectionText = this.textBox1.Text; PdfProjectPdf ppf = new PdfProjectPdf(); ppf.Pages = newSelectionText; int[] newSelection = ppf.CalculatePageSelection(false); if (newSelection == null) { this.labelStatusPageSelection.Text = "Invalid selection!"; } else { this.labelStatusPageSelection.Text = newSelection.Length + " pages selected."; ppp.Pages = ppf.Pages; this.SomethingHappens(); } }
private void timer1_Tick(object sender, EventArgs e) { this.timer1.Stop(); string newSelectionText = this.textBox1.Text; PdfProjectPdf ppf=new PdfProjectPdf(); ppf.Pages=newSelectionText; int[] newSelection = ppf.CalculatePageSelection(false); if (newSelection == null) { this.labelStatusPageSelection.Text = "Invalid selection!"; } else { this.labelStatusPageSelection.Text = newSelection.Length+" pages selected."; ppp.Pages = ppf.Pages; this.SomethingHappens(); } }