Esempio n. 1
0
        /// <summary>
        /// Refreshes the recipe combo box after the recipe has been added/deleted.
        /// </summary>

        private void RefreshBtn_Click(object sender, EventArgs e)
        {
            List <Recipe> allRecipes = RecipeDb.GetAllRecipes();

            PopulateRecipeList(allRecipes);
            MessageBox.Show("Recipe List has been refreshed!" + " Click the combo box to see your new recipes!" +
                            " If there were no new recipes added, then the list is already up to date, or you haven't made a new one yet!" +
                            " To do this, click the Add Recipe Button to fill out the form, then add it to the Recipe List by clicking the" +
                            " Add to Recipe Database Button!", "Recipe List Updated!");
        }
Esempio n. 2
0
        private void RecipeMain_Load(object sender, EventArgs e)
        {
            List <Recipe> allRecipes = RecipeDb.GetAllRecipes();

            PopulateRecipeList(allRecipes);
        }