Esempio n. 1
0
        public void Xe_XoaXe(DataGridView dgv)
        {
            DAO_Xe daXe = new DAO_Xe();
            int    cr   = dgv.CurrentCell.RowIndex;
            int    maxe = Convert.ToInt32(dgv.Rows[cr].Cells[0].Value);

            BUS_Ghe.Instance.Ghe_XoaGhe(maxe);
            daXe.DeleteXe(maxe);
        }
Esempio n. 2
0
        public bool DeleteXe(int id)
        {
            DAO_Xe daoXe = new DAO_Xe();

            return(daoXe.DeleteXe(id));
        }