private void pictureBox4_Click(object sender, EventArgs e) { if (dtgPhieu.SelectedRows.Count > 0) { frmLapPhieuMuonSach frm = new frmLapPhieuMuonSach(); frm.sachlist = sachlist; frm.mPhieu = mPhieu; frm.type = 1; frm.ngaymuon = (DateTime) dtgPhieu.SelectedRows[0].Cells[2].Value; frm.songay = (int) dtgPhieu.SelectedRows[0].Cells[3].Value; frm.trangThai = (bool)dtgPhieu.SelectedRows[0].Cells[4].Value; frm.ShowDialog(); Show(); } else { MessageBox.Show("Bạn chưa chọn phiếu nào cả !!"); } }
private void pictureBox2_Click(object sender, EventArgs e) { frmLapPhieuMuonSach frm = new frmLapPhieuMuonSach(); frm.ShowDialog(); }