public AnimalStatusEntryView()
        {
            InitializeComponent();
            animalHandler = new AnimalsHandler();
            comboBoxAnimal.ItemsSource = animalHandler.GetCattles();
            List <bool> booleanList = new List <bool>();

            booleanList.Add(true);
            booleanList.Add(false);

            comboBoxMilkingStatus.ItemsSource = booleanList;

            allStatusesList = animalHandler.GetAnimalStatuses();
            //IEnumerable<AnimalStatusNew> distinctStauses = allStatusesList.Distinct();
        }
Exemple #2
0
        public void Refresh()
        {
            animalHandler = new AnimalsHandler();

            datagridAnimal.ItemsSource = animalHandler.GetCattles();
        }