private void receive_it_btn_Click(object sender, EventArgs e) { string query; Boolean result; query = "UPDATE lend_book SET recieve_case=1,delivery_date=NOW() WHERE id={0};"; query = string.Format(query, lend_book_id); result = DatabaseProcess.update(query); if (result) { MessageBox.Show("Kitap alındı"); this.Close(); } else { MessageBox.Show("Bir sorun oluştu"); } }