private void finishBtn_Click(object sender, EventArgs e) { SendLabTestToDoctor(); LabTestTimer.Start(); panel2.Visible = false; patientName.Text = ""; clinicvisit.Text = ""; paymentType.Text = ""; scheme.Text = ""; fileNumber.Text = ""; gender.Text = ""; year.Text = ""; address.Text = ""; }
private void RemoveTest(object sender, EventArgs e) { var button = sender as BunifuImageButton; MySqlConnection con = new MySqlConnection(); con.ConnectionString = login.DBconnection; string delete = "delete from laboratorytestrecords where Id = '" + button.Name.ToString() + "'"; MySqlDataReader rd; MySqlCommand com = new MySqlCommand(delete, con); try { con.Open(); rd = com.ExecuteReader(); LabTestTimer.Start(); } catch (MySqlException ex) { MessageBox.Show(ex.Message); } con.Close(); }
private void labAddBtn_Click(object sender, EventArgs e) { InsertTests(); LabTestTimer.Start(); }