Esempio n. 1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            Store_DTO storeDTO = new Store_DTO();
            int       IDs      = Convert.ToInt32(lblID.Text);

            // storeDTO.ID =Convert.ToInt32( lblID.Text);
            if (Store_BUL.DeleteStore(IDs) == true) //Nó đã thực thi làm thay đổi CSDL
            {
                bunifuCustomDataGrid1.Rows.Clear();
                LoadDataGridView();
                Reset();
                MessageBox.Show("xóa thành công!", "Thông báo");
            }
            else
            {
                MessageBox.Show("xóa không thành công!", "Thông báo");
            }
        }