private void RefreshPanel() { CreateRecipe recipePanel = new CreateRecipe(this, "레시피", setRecipe, createRecipe, setMainFood, setSubFood); recipePanel.PanelRefresh(); recipePanel.Close(); }
public UpdateRecipe(List <string> curRecipe, UI master, params Panel[] panels) { recipeData = new RecipeData(); this.curRecipe = curRecipe; this.panels = panels; mainPanel = new CreateRecipe(panels[1], "주재료"); subPanel = new CreateRecipe(panels[2], "소스"); contentPanel = new CreateRecipe(master, "레시피", panels[3], panels[0], panels[1], panels[2]); InitData(); SetTitleText(); SetFoodText(); }
private void btnCreateRecipe_Click(object sender, EventArgs e) { RefreshPanel(); if (!isCreateRecipe) { isCreateRecipe = true; CreateRecipe mainFoodPanel = new CreateRecipe(setMainFood, "주재료"); CreateRecipe subFoodPanel = new CreateRecipe(setSubFood, "소스"); CreateRecipe recipePanel = new CreateRecipe(this, "레시피", setRecipe, createRecipe, setMainFood, setSubFood); } SetCrecateRecipePanel(); }