private void insertButton_Click(object sender, EventArgs e) { string name = nameTextbox.Text; string author = authorTextbox.Text; string type = typeTextbox.Text; string amount = amountTextbox.Text; string cost = costTextBox.Text; if (this.validateInput(name, author, type, amount, cost)) { Book newBook = new Book(name, author, type, int.Parse(amount), int.Parse(cost)); int res = bookBll.Insert(newBook); if (res == 1) { InsertLocation insertLocation = new InsertLocation(name); insertLocation.Show(); insertLocation.FormClosed += InsertLocation_FormClosed; } } }