private void delButton_Click(object sender, EventArgs e) { connection con = new connection(); con.donorDelete(id); clearText(); dd.getData(1); }
private void editButton_Click(object sender, EventArgs e) { connection con = new connection(); con.donorUpdate(id, nameText.Text, proText.Text, dateCombo1.Text + "-" + month[monthCombo1.Text] + "-" + yearCombo1.Text, addText.Text, emText.Text, phText.Text, bgCombo.Text, dateCombo2.Text + "-" + month[monthCombo2.Text] + "-" + yearCombo2.Text); clearText(); dd.getData(1); }
private void editButton_Click(object sender, EventArgs e) { connection con = new connection(); con.clientUpdate(id, nameText.Text, proText.Text, addText.Text, emText.Text, phText.Text, Convert.ToInt32(amountText1.Text), Convert.ToInt32(amountText2.Text), Convert.ToInt32(amountText3.Text), Convert.ToInt32(amountText4.Text), Convert.ToInt32(amountText5.Text), Convert.ToInt32(amountText6.Text), Convert.ToInt32(amountText7.Text), Convert.ToInt32(amountText8.Text), dateCombo1.Text + "-" + month[monthCombo1.Text] + "-" + yearCombo1.Text); clearText(); dd.getData(3); }
private void doneButton_Click(object sender, EventArgs e) { connection con = new connection(); con.storageInsert(bgCombo.Text, roomText.Text, slText.Text, dateCombo1.Text + "-" + month[monthCombo1.Text] + "-" + yearCombo1.Text); clearText(); dd.getData(2); }
private void deleteButton_Click(object sender, EventArgs e) { connection con = new connection(); con.storageDelete(id); clearText(); dd.getData(2); }
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); }