Ejemplo n.º 1
0
        /// <summary>
        /// Funkcja przydziea nam po 1 początkowym pracowniku
        /// </summary>
        private void StartingEmployees()
        {
            Cook           tempCook   = new Cook("Romek", 1, "Łysy", "Polska", false);
            MushroomPicker tempPicker = new MushroomPicker("Janusz", 1, "Z tupecikiem", true);

            listOfCooks.Add(tempCook);
            listOfMushroomPickers.Add(tempPicker);
            ShowTable();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Funkcja dodająca grzybiarza do listy grzybiaarzy
        /// </summary>
        private void AddMushroomPicker()
        {
            string name      = nameOfEmployeeTextBox.Text;
            string hairstyle = hairstyleOfEmployeeTextBox.Text;
            int    howManyResourcesPerHour = Int32.Parse(howManyResourcesPerHourNumericUpDown.Text);
            string nationality             = NationalityTextBox.Text;
            bool   mustache = mustacheOrChefHatCheckBox.Checked;

            var picker = new MushroomPicker(name, howManyResourcesPerHour, hairstyle, mustache);

            listOfMushroomPickers.Add(picker);
        }