private void btn_returnbook_Click(object sender, EventArgs e) // Button return book { int i = grid_results_adm.CurrentRow.Index; string isbn = grid_results_adm["Isbn", i].Value.ToString(); int copy = (int)grid_results_adm["CopyNbr", i].Value; BibliotechDAL bd = new BibliotechDAL(); bd.EndLoan(isbn, copy); FillViewBooks(); }
private void btn_userreturn_Click(object sender, EventArgs e) { int i = grid_results.CurrentRow.Index; string isbn = grid_results["BookIsbn", i].Value.ToString(); int copy = (int)grid_results["BookCopy", i].Value; BibliotechDAL bd = new BibliotechDAL(); bd.EndLoan(isbn, copy); ShowLoans(); }