public override void deleteBtn_Click(object sender, EventArgs e) { if (delStatus == 1) { DialogResult dr = MessageBox.Show("are you sure you want to delete this record", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { deletions d = new deletions(); d.deleteData("st_deleteUser", "@userID", userID); MainClass.disable_reset(leftpanel); r.showUsers(dataGridView1, userIDGV, nameGV, usernameGV, passGV, phoneGV, addressGV, rolesIDGV, rolesGV); } } }
public override void deleteBtn_Click(object sender, EventArgs e) { if (delStatus == 1) { DialogResult dr = MessageBox.Show("are you sure you want to delete this record", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { deletions d = new deletions(); d.deleteData("st_deleteTax", "@taxID", taxID); MainClass.disable_reset(leftpanel); retrival.showTax(dataGridView1, taxIDGV, taxtGV, taxvGV); } } }
public override void deleteBtn_Click(object sender, EventArgs e) { if (delStatus == 1) { DialogResult dr = MessageBox.Show("are you sure you want to delete this record", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { deletions d = new deletions(); d.deleteData("st_deleteCategory", "@id", catID); MainClass.disable_reset(leftpanel); r.showCategories(dataGridView1, catIDGV, CatnameGV); } } }
public override void deleteBtn_Click(object sender, EventArgs e) { if (delStatus == 1) { DialogResult dr = MessageBox.Show("are you sure you want to delete this record", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { deletions d = new deletions(); d.deleteData("st_deleteTables", "@tableID", TabelID); MainClass.disable_reset(leftpanel); r.showTables(dataGridView1, tablenumGV, nameGV, floorIDGV, tableidGV, ChairsGV); } } }