private void button1_Click(object sender, EventArgs e) { if (libraryApp.Borrow(Convert.ToInt32(lblBook.Text), Convert.ToInt32(lblAccount.Text))) { MessageBox.Show("Borrow Success"); } else { MessageBox.Show("One or more field haven't been filled correctly"); } }