Пример #1
0
        private void btnMuonTra_Click(object sender, EventArgs e)
        {
            //frmHoaDon hd = new frmHoaDon(label14.Text);
            //hd.ShowDialog();
            List <getTaiLieu> list = new List <getTaiLieu>();
            frmHoaDon         frm  = new frmHoaDon(list, label14.Text, lbltongso.Text);

            frm.ShowDialog();
        }
Пример #2
0
        private void btnLapPhieuMuon_Click(object sender, EventArgs e)
        {
            List <getTaiLieu> list = new List <getTaiLieu>();

            for (int i = 0; i < dataGridView1.RowCount - 1; i++)
            {
                string matl = dataGridView1.Rows[i].Cells[1].Value.ToString();
                string sl   = dataGridView1.Rows[i].Cells[3].Value.ToString();

                getTaiLieu tl = new getTaiLieu(matl, sl);
                list.Add(tl);
            }
            frmHoaDon frm = new frmHoaDon(list, label14.Text, lbltongso.Text);

            frm.ShowDialog();
        }