コード例 #1
0
 private void btnIn_Click(object sender, EventArgs e)
 {
     if (lsvPhieuNhap.SelectedItems.Count > 0)
     {
         pn.BaoCao_CTPN_MaPN(lsvPhieuNhap.SelectedItems[0].Text);
         frm_rp_CTPN_MaPN a = new frm_rp_CTPN_MaPN();
         a.ShowDialog();
     }
     else
     {
         MessageBox.Show("Mời bạn chọn phiếu nhập hàng muốn in", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }