private void button1_Click(object sender, EventArgs e) { openFileDialog1.ShowDialog(); this.textBox2.Text = openFileDialog1.FileName; WebBrowser wbC = new WebBrowser(); wbC.Navigate(this.openFileDialog1.FileName); this.richTextBox1.Text = wbC.DocumentText; Form prFC = new printFormGist(this.richTextBox1.Text.Trim(), false, false); prFC.Show(); }
//распечатка private void printForm() { if (patSel == true) { if (documWritten == false) { insCytZ(); } Form prFC = new printFormGist(setDataCy(), true, false); } else { System.Windows.Forms.MessageBox.Show("Выберите пациента"); } }
private void viewForm() { Form prFC = new printFormGist(setDataCy(), false, false); prFC.Show(); }
private void button2_Click(object sender, EventArgs e) { Form prFC = new printFormGist(fillForm(), true, false); prFC.Show(); }
private void toolStripButton3_Click(object sender, EventArgs e) { if (this.richTextBox1.Text.Trim().Length > 0) { Form prFC = new printFormGist(this.richTextBox1.Text.Trim(), false, false); prFC.Show(); } }