private async Task LoadBloodtypesToCombobox()
        {
            IEnumerable <BloodType> bloodTypes = await miscellaneousClient.GetBloodTypesAsync();

            foreach (var bloodType in bloodTypes)
            {
                BloodTypesComboBox.Items.Add(bloodType);
            }
        }
Пример #2
0
        private async void PersonnelDonationsPage_Loaded(object sender, RoutedEventArgs e)
        {
            IEnumerable <BloodType> bloodTypes = await miscellaneousClient.GetBloodTypesAsync();

            IEnumerable <BloodDonation> donations = await personnelClient.GetAllBloodAsync();

            foreach (var bloodType in bloodTypes)
            {
                BloodTypeComboBox.Items.Add(bloodType);
            }

            foreach (var donation in donations)
            {
                Donations.Add(donation);
            }
            FilterDataGrid();
        }