Esempio n. 1
0
        FormHomework1Main parentForm;   // okno wywołujące te okno

        public FormAddingMeal(FormHomework1Main parentForm)
        {
            InitializeComponent();
            this.parentForm = parentForm;
            listBoxNewMealType.DataSource = new List <String> {
                "Burger", "Makaron", "Pizza"
            };                                                                                  // lista dostępnych typów dania
            listBoxNewMealIngredients.DataSource = null;
            listBoxNewMealIngredients.DataSource = parentForm.getListOfIngredientsNames();      // lista składników
            listBoxNewBurgerLevel.DataSource     = new List <String> {
                "Słabo", "Średnio", "Mocno"
            };                                                                                      // lista dostępnych cech burgera
            listBoxNewPastaType.DataSource = new List <String> {
                "Kokardki", "Świderki", "Spaghetti"
            };                                                                                          // lista dostępnych typów makaronu
        }
Esempio n. 2
0
        FormHomework1Main parentForm;   // okno wywołujące te okno

        public FormRemoveMeal(FormHomework1Main parentForm)
        {
            InitializeComponent();
            this.parentForm = parentForm;
            listBoxRemoveMeal.DataSource = parentForm.getListOfMealsNames();
        }
Esempio n. 3
0
        FormHomework1Main parentForm;   // okno wywołujące te okno

        public FormRemoveIngredient(FormHomework1Main parentForm)
        {
            InitializeComponent();
            this.parentForm = parentForm;
            listBoxRemoveIngredient.DataSource = parentForm.getListOfIngredientsNames();
        }
Esempio n. 4
0
        private void buttonHomework1_Click(object sender, EventArgs e)
        {
            FormHomework1Main formHomework1Main = new FormHomework1Main();

            formHomework1Main.Show();
        }
Esempio n. 5
0
        FormHomework1Main parentForm;   // okno wywołujące te okno

        public FormAddIngredient(FormHomework1Main parentForm)
        {
            InitializeComponent();
            this.parentForm = parentForm;
        }