private void FormNewIngr_Load(object sender, EventArgs e) { DBConnect.getAllIngr(ref dataGridViewAllIngr); DBConnect.FillBindingList(ref categoriesIngrs, "KATEGORIA_INGREDIENT", "NAME_KATEG_INGR"); comboBoxIngrCategory.DataSource = categoriesIngrs; }
private void FormNewRecept_Load(object sender, EventArgs e) { DBConnect.FillBindingList(ref categoriesRec, "KATEGORIA_RECEPT", "NAME_KATEG_REC"); comboBoxCategory.DataSource = categoriesRec; DBConnect.FillBindingList(ref typeCuis, "CUISINE", "NAME_CUISINE"); comboBoxCuisine.DataSource = typeCuis; //*2 //DBConnect.FillBindingList(ref categoriesIngrs, "KATEGORIA_INGREDIENT", "NAME_KATEG_INGR"); //comboBoxIngrCategory.DataSource = categoriesIngrs; }
private void FormFilterByCategory_Load(object sender, EventArgs e) { DBConnect.FillBindingList(ref categoriesRecept, "KATEGORIA_RECEPT", "NAME_KATEG_REC"); comboBoxSelectedCategories.DataSource = categoriesRecept; }
private void Filter_Load(object sender, EventArgs e) { DBConnect.FillBindingList(ref categoriesIngr, "KATEGORIA_INGREDIENT", "NAME_KATEG_INGR"); comboBoxSelectCategory.DataSource = categoriesIngr; }