Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 internal void refreshRecipeNames()
 {
     recipesToBeConv.refreshRecipeNames();
     RecipeToBeConv.RefreshRecipeName(recipeCB, this);
     CRUDDisableIfRecipesEmpty();
 }
Ejemplo n.º 3
0
        internal void recipeName_SelectionChangeCommitted(object sender, EventArgs e)
        {
            ComboBox cb = (ComboBox)sender;

            RecipeToBeConv.RefreshRecipeName(cb, this);
        }