Example #1
0
 private void lvDanhSachHDX_DoubleClick(object sender, EventArgs e)
 {
     HoaDonXuat hdx = (HoaDonXuat)arrLAllHDX.ToArray()[lvDanhSachHDX.FocusedItem.Index];
     ChiTietDonThuoc chiTietDT = new ChiTietDonThuoc(hdx);
     chiTietDT.ShowDialog();
 }
Example #2
0
 private void xemchitietToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (lvDanhSachHDX.SelectedItems.Count > 0)
     {
         HoaDonXuat hdx = (HoaDonXuat)arrLAllHDX.ToArray()[lvDanhSachHDX.FocusedItem.Index];
         ChiTietDonThuoc chiTietDT = new ChiTietDonThuoc(hdx);
         chiTietDT.ShowDialog();
     }
     else
     {
         MessageBox.Show(this, "Chọn một hóa đơn", "Thông báo");
     }
 }