Exemple #1
0
        private void bt_Delete_Click(object sender, EventArgs e)
        {
            int iSelectedPromoId = Convert.ToInt32(txt_PromoID.Text);

            if (iSelectedPromoId > 0)
            {
                DataAccessPOS dbPOS = new DataAccessPOS();
                dbPOS.Delete_Promotion_By_Id(iSelectedPromoId);
                dbPOS.Delete_PromoProducts_By_PromoId(iSelectedPromoId);
                bt_Exit.PerformClick();
            }
        }