public ManageChefsUserControl(MainWindow mainWindow) { InitializeComponent(); this.chefsController = new ChefsController(); this.mainWindow = mainWindow; this.RefreshChefs(); }
public ManageRecipesUserControl(MainWindow mainWindow) { InitializeComponent(); this.ingredientsController = new IngredientsController(); this.recipesController = new RecipesController(); this.chefsController = new ChefsController(); this.mainWindow = mainWindow; this.ingredientsCurrentRecipe = new List <Ingredient>(); this.listBoxIngredients.Items.AddRange(ingredientsController.GetAllIngredients().ToArray()); this.RefreshRecipes(); this.comboBoxRecipeChef.Items.Clear(); this.comboBoxRecipeChef.Items.AddRange(this.chefsController.GetAllChefs().ToArray()); }