private void btnDelete_Click(object sender, EventArgs e) { if (txtFullname.Text.Trim().Equals("")) { MessageBox.Show("please select an employee", "SAVED - Fronty", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } clsdelete delly = new clsdelete(); delly.deleteEmployee(getIDs.Text); }
private void btnVoid_Click(object sender, EventArgs e) { deleteClass = new clsdelete(); if (voidID == "") { MessageBox.Show("Please click to select a row to void", "Help - King Bar Beque...", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } Font myFont = new Font("Sans Serif", 8, FontStyle.Strikeout, GraphicsUnit.Point); dataGridView1.Rows[0].Cells[0].Style.Font = myFont; dataGridView1.Rows[0].Cells[1].Style.Font = myFont; dataGridView1.Rows[0].Cells[2].Style.Font = myFont; dataGridView1.Rows[0].Cells[3].Style.Font = myFont; deleteClass.deleteDetailsSettlementByID(voidID);//this is the id used to void the specific kot POSupdateBillAndSettlement("UNPAID"); }