private void button1_Click(object sender, EventArgs e) { if (firstclick) { PrintScreenNumber = new PrintScreenNumber(textBox1.Text); textBox1.ReadOnly = true; firstclick = false; } PrintScreenNumber.NextPage(); textBox1.Text = PrintScreenNumber.PageURL; webBrowser1.Url = new Uri(textBox1.Text); }
private void Last() { if (firstclick) { PrintScreenNumber = new PrintScreenNumber(textBox1.Text); textBox1.ReadOnly = true; firstclick = false; } PrintScreenNumber.LastPage(); textBox1.Text = PrintScreenNumber.PageURL; webBrowser1.Url = new Uri(textBox1.Text); }