/// <summary> /// Add list of animals to start for testing /// </summary> private void Debug_AddInitialValues() { animalmanager.Add("Speedy", 150, Gender.Unknown, Species.Turtle, "0.75", "1.0"); animalmanager.Add("Smiley", 15, Gender.Male, Species.Crocodile, "5", "2"); animalmanager.Add("Greedy", 1, Gender.Female, Species.Chameleon, "0.05", "Orange"); animalmanager.Add("Sleepy", 5, Gender.Male, Species.Cattle, "995", "1.2"); animalmanager.Add("Happy", 1, Gender.Female, Species.Horse, "350", "Icelandic horse"); listBoxAnimals.Items.Clear(); listBoxAnimals.Items.AddRange(animalmanager.ToStringArray()); Recipe recipe = new Recipe(); recipe.Name = "Turtle Special"; recipe.Ingredients.Add("25% krill"); recipe.Ingredients.Add("25% gammarus"); recipe.Ingredients.Add("50% shrimp"); recipeManager.Add(recipe); UpdateListFoodStaff(); }
/// <summary> /// Updates GUI /// </summary> private void UpdateGUI() { lstRegisteredAnimals.DataSource = _animalManager.ToStringArray(); }