Exemple #1
0
        public ManageChefsUserControl(MainWindow mainWindow)
        {
            InitializeComponent();

            this.chefsController = new ChefsController();

            this.mainWindow = mainWindow;

            this.RefreshChefs();
        }
Exemple #2
0
        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());
        }