Пример #1
0
        private void btnAddBookCategory_Click(object sender, EventArgs e)
        {
            Connect2DB database = new Connect2DB();

            CategoryName = this.txtBookCategory.Text;

            if (database.addBookCategory(CategoryName))
            {
                MessageBox.Show("Category successfully added");
            }

            else
            {
                MessageBox.Show("ERROR: Category not added!");
            }
        }