private void Btnquaylai_Click(object sender, EventArgs e)
        {
            FrmPhieuMuonSach pms = new FrmPhieuMuonSach();

            this.Hide();
            pms.Show();
        }
        private void Btnluu_Click(object sender, EventArgs e)
        {
            DialogResult trangthai;

            trangthai = (MessageBox.Show("Bạn có chắc chắc muốn chỉnh sửa?", "Thông Báo", MessageBoxButtons.YesNo, MessageBoxIcon.Warning));
            if (trangthai == DialogResult.Yes)
            {
                //FrmPhieuMuonSach.days = txbtimelimit.Text;
                FrmPhieuMuonSach.soluotmuontoida = txbmax.Text;
                MessageBox.Show("Lưu thành công!!!", "Thông Báo");
                FrmPhieuMuonSach fms = new FrmPhieuMuonSach();
                this.Hide();
                fms.Show();
            }
        }
Пример #3
0
 private void Button1_Click(object sender, EventArgs e)
 {
     if (bus.check(txtID.Text).Rows.Count > 0)
     {
         if (_flag == "Muon")
         {
             FrmPhieuMuonSach frmpms = new FrmPhieuMuonSach();
             frmpms.Message = txtID.Text;
             frmpms.Show();
             this.Hide();
         }
         else
         {
             FrmTraSach frmTra = new FrmTraSach();
             frmTra.Message = txtID.Text;
             frmTra.Show();
             this.Hide();
         }
     }
     else
     {
         MessageBox.Show("Không tìm thấy ID");
     }
 }