Example #1
0
 /// <summary>
 /// Init GUI at start
 /// </summary>
 private void Init()
 {
     animalController           = new AnimalHandler();
     lboxCategory.ItemsSource   = animalController.getListCategories();
     lboxCategory.SelectedIndex = 0;
     lboxSpecies.ItemsSource    = animalController.getListSpecies(lboxCategory.SelectedIndex);
     lboxSpecies.SelectedIndex  = 0;
     lboxGender.ItemsSource     = animalController.getListGender();
     lboxGender.SelectedIndex   = 0;
 }
Example #2
0
 /// <summary>
 /// Init GUI at start
 /// </summary>
 private void Init()
 {
     animalController = new AnimalHandler();
     lboxCategory.ItemsSource = animalController.getListCategories();
     lboxCategory.SelectedIndex = 0;
     lboxSpecies.ItemsSource = animalController.getListSpecies(lboxCategory.SelectedIndex);
     lboxSpecies.SelectedIndex = 0;
     lboxGender.ItemsSource = animalController.getListGender();
     lboxGender.SelectedIndex = 0;
 }