Beispiel #1
0
 public override void deletebtn_Click(object sender, EventArgs e)
 {
     if (delStatus == 1)
     {
         DialogResult dr = MessageBox.Show("Want to delete this record?", "Question.", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dr == DialogResult.Yes)
         {
             Deletion.deleteData("st_deleteUsers", "@userID", userID);
             MainClass.resetDisable(leftpanel);
             RetrivalData.getUsers(dataGridView1, userIDGV, NameGV, usernameGV, passGV, phoneGV, addressGV, RoleIDGV, RoleGV);
         }
     }
 }
Beispiel #2
0
 public override void deletebtn_Click(object sender, EventArgs e)
 {
     if (delStatus == 1)
     {
         DialogResult dr = MessageBox.Show("Want to delete this record?", "Question.", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dr == DialogResult.Yes)
         {
             Deletion.deleteData("st_deleteFloor", "@floorID", floorID);
             MainClass.resetDisable(leftpanel);
             RetrivalData.getFloors(dataGridView1, floorIDGV, floorNameGV, floorNumberGV);
         }
     }
 }
Beispiel #3
0
 public override void deletebtn_Click(object sender, EventArgs e)
 {
     if (delStatus == 1)
     {
         DialogResult dr = MessageBox.Show("Want to delete this record?", "Question.", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dr == DialogResult.Yes)
         {
             Deletion.deleteData("st_deleteMenuItem", "@menuID", menuID);
             MainClass.resetDisable(leftpanel);
             RetrivalData.getMenu(dataGridView1, catIDGV, catGV, MenuItemGV, menuIDGV, priceGV, StatusGV);
         }
     }
 }