Exemplo n.º 1
0
        private void viewRecipesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            View_Recipes recipeViewer = new View_Recipes();

            recipeViewer.dataurl = dataurl;
            recipeViewer.ShowDialog();
            currentRecipeKey = recipeViewer.currentSelectedRecipe;
            if (currentRecipeKey != null)
            {
                loadRecipe();
                populateMainScreen();
                Era1Button.Enabled = true;
            }
        }
Exemplo n.º 2
0
        private void viewRecipesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            View_Recipes recipeViewer = new View_Recipes();
            APIHandler   handler      = new APIHandler();

            //recipeViewer.dataurl = dataurl;
            recipeViewer.ShowDialog();
            string currentRecipeKey = recipeViewer.currentSelectedRecipe;

            if (currentRecipeKey != null)
            {
                currentRecipe = null;
                currentRecipe = handler.loadRecipe(currentRecipeKey);
                populateGrids();
                RefreshStatistics();
            }
        }