private string[,] addStuff(string[,] ingredients, RecipeToBeConv recipeToBeConv) { string currentContLid = RecipeToBeConv.ContLidDict[recipeToBeConv.ContTypeCB.Text][recipeToBeConv.ContVolumeCB.Text]; string amount = recipeToBeConv.AmountTB.Text; string[,] stuff = { { "Крышка " + currentContLid, amount, "шт" }, { recipeToBeConv.ContTypeCB.Text, amount, "шт" }, { "Этикетка", amount, "шт" } }; int newIngredientsLength = ingredients.GetLength(0) + stuff.GetLength(0); string[,] newIngredients = new string[newIngredientsLength, Form2.COLUMN_AMOUNT]; append(newIngredients, ingredients, 0); append(newIngredients, stuff, ingredients.GetLength(0)); return(newIngredients); }
internal void refreshRecipeNames() { recipesToBeConv.refreshRecipeNames(); RecipeToBeConv.RefreshRecipeName(recipeCB, this); CRUDDisableIfRecipesEmpty(); }
internal void recipeName_SelectionChangeCommitted(object sender, EventArgs e) { ComboBox cb = (ComboBox)sender; RecipeToBeConv.RefreshRecipeName(cb, this); }