Пример #1
0
 public AnimalControllForm(Zoo zoo, int countofZoos)
 {
     zooController = new ZooCont(zoo);
     InitializeComponent();
     ZooNameTextBox.Text   = zoo.Name;
     animalIndex           = -1;
     ZoosCountTextBox.Text = countofZoos.ToString();
 }
Пример #2
0
 public AnimalIndivid(int index, ZooCont controller)
 {
     InitializeComponent();
     animalNameTextBox.Text = controller.ReturnZoo().ElementAt(index).Name;
     animalCommentBox.Text  = controller.ReturnZoo().ElementAt(index).Comment;
 }