Exemplo n.º 1
0
 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     = "";
 }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 private void LabTestTimer_Tick(object sender, EventArgs e)
 {
     LabTestTimer.Stop();
     ClearThePanels();
     addMeasurements();
 }
Exemplo n.º 4
0
 private void labAddBtn_Click(object sender, EventArgs e)
 {
     InsertTests();
     LabTestTimer.Start();
 }