Beispiel #1
0
        private void lswMonAn_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ItemDuocChon = lswMonAn.SelectedItems;
            frmChiTietSanPham frmCTSP = new frmChiTietSanPham(ItemDuocChon[0].SubItems[1].Text);

            frmCTSP.Show();
        }
Beispiel #2
0
        private void dgvHoaDon_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }
            List <string> info = new List <string>();

            DataGridViewRow r = dgvHoaDon.Rows[e.RowIndex];
            List <clsChiTietSanPham_DTO> ctsp = clsChiTietSanPham_BUS.Retrieve_ChiTietSanPham(r.Cells["colMaSPHD"].Value.ToString(), r.Cells["colMauHD"].Value.ToString(), r.Cells["colChatLieuHD"].Value.ToString(), r.Cells["colSizeHD"].Value.ToString());

            info.Add(ctsp[0].MaSP);
            info.Add(ctsp[0].SoLuongTonKho.ToString());
            info.Add(ctsp[0].MaMau);
            info.Add(ctsp[0].MaSize);
            info.Add(ctsp[0].MaChatLieu);
            info.Add(ctsp[0].GiaTien.ToString());
            info.Add(ctsp[0].HinhAnh);

            frmChiTietSanPham frm = new frmChiTietSanPham(info);

            frm.ShowDialog();
        }