//List<Animal> animalList;        //Although we need to work for Cattle in the project, but polymorphism will allow animalList to contain Cattle objects. 02-Jan
        public AnimalInsemnationEntryView()
        {
            InitializeComponent();

            //Added - 2 Jan, 2015

            insemnationHandler = new AnimalInsemnationsHandler();
            //animalList = new List<Animal>();

            comboBoxMother.ItemsSource = new AnimalsHandler().GetCattlesFemale();
        }
Пример #2
0
 /// <summary>
 /// Added on March 18
 /// </summary>
 /// <param name="col">Column Name</param>
 /// <param name="param">Column Value</param>
 public void ShowFilteredList(string col, string param)
 {
     animalInsemnationHandler = new AnimalInsemnationsHandler();
     datagridAnimalInsemnation.ItemsSource = animalInsemnationHandler.GetAnimalInsemnations(col, param);
 }
Пример #3
0
        public void Refresh()
        {
            animalInsemnationHandler = new AnimalInsemnationsHandler();

            datagridAnimalInsemnation.ItemsSource = animalInsemnationHandler.GetAnimalInsemnations();
        }