コード例 #1
0
 public override void buttonDelete_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure, you want to delete record.", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dr == DialogResult.Yes)
         {
             Deletion del = new Deletion();
             del.DeleteDetails(ProductId, "Usp_RemoveCategoryProductDetails", "@Id");
             retrieve.ShowProducts(dataGridViewProduct, ProductIdGv, ProductNameGv, ProductCodeGv, ProductPriceGv, ProductUnitGv, ProductMinValGv, ProductCatNameGv, ProductCatIdGv, SalesPriceGv);
             MainClass.Disable_Reset(panelRightSlider);
         }
     }
 }
コード例 #2
0
 public override void buttonDelete_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure, you want to delete record.", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dr == DialogResult.Yes)
         {
             Deletion del = new Deletion();
             del.DeleteDetails(CategoryId, "Usp_RemoveCategoryDetails", "@Id");
             retrieve.ShowCategories(dataGridViewCat, catIdGV, CatGVName, CatGVStatus);
             MainClass.Disable_Reset(panelRightSlider);
         }
     }
 }
コード例 #3
0
 public override void buttonDelete_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure, you want to delete record.", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dr == DialogResult.Yes)
         {
             Deletion del = new Deletion();
             del.DeleteDetails(SupplierId, "Usp_RemoveSupplierDetails", "@SupplierId");
             retrieve.ShowSupplier(dataGridViewSupplier, SupplierIdGv, SupplierNameGv, SupplierCodeGv, SupplierContactNumberGv, SupplierEmailGv, SupplierAddresseGv, SupplierCityGv, SupplierCountryGv, SupplierPaymentMethodGv, SupplierDeliveryMethodGv, SupplierDeliveryLeadTimeIdGv);
             MainClass.Disable_Reset(panelRightSlider);
         }
     }
 }
コード例 #4
0
 public override void buttonDelete_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure, you want to delete record.", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dr == DialogResult.Yes)
         {
             Deletion del = new Deletion();
             del.DeleteDetails(userId, "Usp_RemoveUserDetails", "@UserId");
             retrieve.ShowUsers(dataGridViewUsers, UserIdGV, UsernameGV, PasswordGV, ContactGv, EmailGV, Role, RoleId);
             MainClass.Disable_Reset(panelRightSlider);
         }
     }
 }