public void resetAppointAndLend()
 {
     appointBooks = BookShelfService.GetAllAppointedBooks(currentClient);
     this.appointBindingSource.DataSource = appointBooks;
     lendBooks = BookShelfService.GetAllLentBooks(currentClient);
     this.lendBindingSource.DataSource = lendBooks;
     this.nameTextBox.Text             = currentClient.Name;
 }
        private void cancellButton_Click(object sender, EventArgs e)//取消预约
        {
            Book book = appointBindingSource.Current as Book;

            if (book == null)
            {
                MessageBox.Show("请选择一本书进行操作!");
                return;
            }
            BookShelfService.CancellAppoint(book, currentClient);
            appointBooks = new List <Book>();
            appointBindingSource.DataSource = appointBooks;
            appointBooks = BookShelfService.GetAllAppointedBooks(currentClient);
            appointBindingSource.ResetBindings(false);
            appointBindingSource.DataSource = appointBooks;
        }