Beispiel #1
0
 private void btnDeleteProduct_Click(object sender, EventArgs e)
 {
     if (mlvProdutcs.FocusedItem != null)
     {
         if (!pda.Delete(operatedProduct))
         {
             lblManageProductAlertSuccessfull.Visible = false;
             lblManageProductAlertFail.Visible        = true;
             lblManageProductAlertFail.BringToFront();
         }
         else
         {
             lblManageProductAlertFail.Visible        = false;
             lblManageProductAlertSuccessfull.Visible = true;
             lblManageProductAlertSuccessfull.BringToFront();
         }
         UpdateProductList(mainFilter.Products);
     }
 }
 public bool Delete()
 {
     return(dataAccess.Delete(this));
 }