Beispiel #1
0
        private void btnThemMoi_Click(object sender, EventArgs e)
        {
            frmPhieuMuon frm = new frmPhieuMuon(0);

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
            LoadPhieuMuon();
        }
Beispiel #2
0
        private void btnSua_Click(object sender, EventArgs e)
        {
            if (dtgvPhieuMuon.CurrentRow.Index == dtgvPhieuMuon.Rows.Count - 1)
            {
                return;
            }
            frmPhieuMuon frm = new frmPhieuMuon(int.Parse(dtgvPhieuMuon.Rows[dtgvPhieuMuon.CurrentRow.Index].Cells["ID_MuonSach"].Value.ToString()));

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
            LoadPhieuMuon();
        }