Beispiel #1
0
        private void btnAddCategory_Click(object sender, EventArgs e)
        {
            string idCateTxt = txtCategoryID.Text.Trim();
            string nameCate  = txtCategoryName.Text.Trim();
            string message   = busCate.addCate(idCateTxt, nameCate);

            MessageBox.Show(message);
            if (message.Equals("Thêm danh mục thành công"))
            {
                loadListCate();
                bindingsCate();
                LoadCategory();
                bindingsFood();
            }
        }