Example #1
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     ConnectionDB.Close();
 }
Example #2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     ConnectionDB.Connect();
     SelectMedicaments();
 }
Example #3
0
 private void butApply_Click(object sender, EventArgs e)
 {
     ConnectionDB.Update("update disease set Name= '" + textBoxName.Text + "' where ID_disease= " + dis_id);
     Close();
 }
 private void butApply_Click(object sender, EventArgs e)
 {
     ConnectionDB.Update("update category set Name= '" + textBoxName.Text + "' where ID_cat= " + cat_id);
     Close();
 }
 private void butApply_Click(object sender, EventArgs e)
 {
     ConnectionDB.Update("update symptom set Name= '" + textBoxName.Text + "' where ID_symptom= " + sym_id);
     Close();
 }