Exemple #1
0
        private void btnRemove_Click(object sender, EventArgs e)
        {
            Class.XuLyThuVien KiemTra = new Class.XuLyThuVien();

            if (stt != "")
            {
                KiemTra.Plus_SoLuongSach(KiemTra.LayMaSach_TempView(Convert.ToInt32(stt)));
                KiemTra.RemoveSach_DgvTemp(Convert.ToInt32(stt));

                GridViewSachMuon.DataSource = KiemTra.InfoSach_DgvTemp();
                //reset stt;
                stt = "";
                txtRemoveBook.Clear();
            }
            else
            {
                MetroFramework.MetroMessageBox.Show(this, "Chưa Chọn Dòng Cần Xoá", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }