private void button4_Click(object sender, EventArgs e) { SQLLab.updateLabExam(idappo, "ZAT", textBox5.Text, textBox7.Text, 1); MessageBox.Show("Zmieniono stan badania"); this.Controls.Clear(); this.Visible = false; this.Parent.Hide(); text.Text = "changed"; }
private void button1_Click(object sender, EventArgs e) { if (roll == "MLab") { if (textBox7.Text != "") { SQLLab.updateLabExam(idappo, "ANU", textBox5.Text, textBox7.Text); MessageBox.Show("Zmieniono dane badania"); this.Controls.Clear(); this.Visible = false; this.Parent.Hide(); text.Text = "changed"; } else { MessageBox.Show("Podaj przyczyne anulowania"); } } else { if (textBox5.Text != "") { SQLLab.updateLabExam(idappo, "ANU", textBox5.Text, textBox7.Text); MessageBox.Show("Zmieniono dane badania"); this.Controls.Clear(); this.Visible = false; this.Parent.Hide(); text.Text = "changed"; } else { MessageBox.Show("Podaj przyczyne anulowania"); } } }