示例#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;
 }
示例#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;
 }