예제 #1
0
 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);
         }
     }
 }
예제 #2
0
 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);
         }
     }
 }
예제 #3
0
 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);
         }
     }
 }
예제 #4
0
 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);
         }
     }
 }