Exemplo n.º 1
0
        private void Add_Click(object sender, EventArgs e)
        {
            var c = (Category)comboBoxCategory.SelectedItem;

            FoodController.AddFoods(textBoxFname.Text, textBoxFprice.Text, textBoxFava.Text, c.Category_id);

            MessageBox.Show("add", "Alert");
        }