Beispiel #1
0
        public EditParents(int animalId, string animalSpecie, int parent1Id, int parent2Id, Zoo zoo)
        {
            InitializeComponent();

            _dataAccess = new DataAccess();

            this.animalId = animalId;

            infoLabel.Text = "Parents to animal id " + animalId;

            this.animalSpecie = animalSpecie;

            this.parent1Id = parent1Id;
            this.parent2Id = parent2Id;

            this.zoo = zoo;

            //Loads the possible parents to a combo box
            AddParentsToComboBox();
        }