コード例 #1
0
        private void gridLoadThucUong_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int indexRow;

            indexRow = e.RowIndex;
            DataGridViewRow row = gridLoadThucUong.Rows[indexRow];

            orderDTO.ghiChu      = row.Cells[2].Value.ToString();
            orderDTO.maHoaDon    = int.Parse(lbMaHD.Text);
            orderDTO.tenThucUong = row.Cells[0].Value.ToString();
            if (e.ColumnIndex == 3)
            {
                orderBUS.AddNote(orderDTO);
                LoadGridThucUong();
            }
            if (e.ColumnIndex == 4)
            {
                orderBUS.Delete(orderDTO);
                LoadGridThucUong();
            }
        }
コード例 #2
0
 public Boolean Delete(int?id)
 {
     return(service.Delete(id));
 }