private void insButton_Click(object sender, EventArgs e) { connection con = new connection(); con.clientInsert(nameText.Text, proText.Text, addText.Text, emText.Text, phText.Text, bgAmount["AB+"], bgAmount["AB-"], bgAmount["A+"], bgAmount["A-"], bgAmount["B+"], bgAmount["B-"], bgAmount["O+"], bgAmount["O-"], dateCombo1.Text + "-" + month[monthCombo1.Text] + "-" + yearCombo1.Text); clearText(); loadBg(); dd.getData(3); }
private void doneLab_Click(object sender, EventArgs e) { con.clientInsert(nameText.Text, proText.Text, addText.Text, emText.Text, phText.Text, bgAmount["AB+"], bgAmount["AB-"], bgAmount["A+"], bgAmount["A-"], bgAmount["B+"], bgAmount["B-"], bgAmount["O+"], bgAmount["O-"], dateCombo1.Text + "-" + month[monthCombo1.Text] + "-" + yearCombo1.Text); for (int i = 0; i < list.Count; i++) { con.deleteItem(list[i]); } manageAccount(); clearText(); loadBg(); this.Close(); }