private void Btn_borrow_book_Click(object sender, RoutedEventArgs e)
        {
            if (LBx_book.SelectedItem == null)
            {
                MessageBox.Show("Please select a book to be borrowed...");
                return;
            }

            Book book = LBx_book.SelectedItem as Book;

            if (book.isAvailable.Equals("No"))
            {
                MessageBox.Show("The selected book is not available for borrowing...");
                return;
            }

            Borrow borrowWin = new Borrow(book);

            borrowWin.Owner = this;
            borrowWin.Show();
        }
Ejemplo n.º 2
0
        private void 借书ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Borrow br = new Borrow();

            br.Show();
        }