private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { ConnectionDB.Close(); }
private void MainForm_Load(object sender, EventArgs e) { ConnectionDB.Connect(); SelectMedicaments(); }
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(); }