Пример #1
0
 private void btnReturnPM_Click(object sender, EventArgs e)
 {
     if (dataGridViewPhieuMuon.SelectedRows.Count == 1)
     {
         if (QLPM_BLL.Instance.CheckReturned(Convert.ToInt32(dataGridViewPhieuMuon.SelectedRows[0].Cells[0].Value)))
         {
             MessageBox.Show("Phieu muon da tra roi !");
         }
         else
         {
             FormTraDuLieuPhieuMuon f = new FormTraDuLieuPhieuMuon(Convert.ToInt32(dataGridViewPhieuMuon.SelectedRows[0].Cells[0].Value));
             f.d = new FormTraDuLieuPhieuMuon.MyDel(this.ShowPM);
             f.ShowDialog();
         }
     }
 }
Пример #2
0
        private void btnReturnPM_Click(object sender, EventArgs e)
        {
            FormTraDuLieuPhieuMuon f = new FormTraDuLieuPhieuMuon();

            f.ShowDialog();
        }