public async override void Prepare()
        {
            DogShowList = await _dogShowService.GetDogShowListAsync <DogShowDetail>();

            var data = await _dogRegistrationService.GetListAsync <DogRegistrationDetail>();

            var orderedData = from d in data
                              orderby d.RegisrationNumber ascending
                              select d;

            DogRegistrations = orderedData.ToList();

            HandlerClasses = await _handlerClassService.GetHandlerClassListAsync <HandlerClassEntity>();

            CurrentEntity = new MultipleHandlerEntry();
            foreach (IDogShowEntity dogShow in DogShowList)
            {
                HandlerEntry newEntry = new HandlerEntry();
                newEntry.DogShow = dogShow;
                newEntry.Handler = SelectedHandlerRegistration;

                (CurrentEntity as MultipleHandlerEntry).HandlerEntries.Add(newEntry);
                (CurrentEntity as MultipleHandlerEntry).NotifyEntriesChanged();
            }
        }
        public async override void Prepare()
        {
            CurrentEntity = new HandlerEntry()
            {
                Id      = data.Id,
                Handler = SelectedHandlerRegistration,
                Number  = data.EntryNumber
            };

            SelectedHandlerRegistration = await _handlerRegistrationService.GetHandlerRegistrationAsync <HandlerRegistrationDetail>(data.HandlerId);

            DogShowList = await _dogShowService.GetDogShowListAsync <DogShowDetail>();

            var rawdata = await _dogRegistrationService.GetListAsync <DogRegistrationDetail>();

            var orderedData = from d in rawdata
                              orderby d.RegisrationNumber ascending
                              select d;

            DogRegistrations = orderedData.ToList();

            HandlerClasses = await _handlerClassService.GetHandlerClassListAsync <HandlerClassEntity>();

            SelectedDogShow         = DogShowList.Where(d => d.Id == data.ShowId).First();
            SelectedDogRegistration = DogRegistrations.Where(d => d.Id == data.DogId).First();
            SelectedHandlerClass    = HandlerClasses.Where(d => d.Name == data.EnteredClassName).First();
        }
Exemplo n.º 3
0
        public async override void Prepare()
        {
            Items.Clear();

            List <IDogShowEntity> items = await _service.GetDogShowListAsync <DogShowDetail>();

            items.ForEach(i => Items.Add(i));
        }
Exemplo n.º 4
0
        public async override void Prepare()
        {
            DogShowList = await _dogShowService.GetDogShowListAsync <DogShowDetail>();

            BreedGroupList = await _breedGroupService.GetListAsync <BreedGroupDetail>();

            BreedList     = new List <IBreedEntity>();
            CurrentEntity = new MultipleBreedEntryClassEntry();
        }
        public async override void Prepare()
        {
            DogShowList = await _dogShowService.GetDogShowListAsync <DogShowDetail>();

            CurrentEntity = new BreedEntry();
            (CurrentEntity as IBreedEntryEntity).Classes = await _dogShowService.GetListOfClassEntriesForNewBreedEntryAsync <BreedClassEntryEntityWithClassDetailForSelection>();

            (CurrentEntity as IBreedEntryEntity).Dog = SelectedDogRegistration;
            CurrentEntity.MarkEntityAsClean();
        }
        public async override void Prepare()
        {
            DogShowList = await _dogShowService.GetDogShowListAsync <DogShowDetail>();

            LoadClassList();

            ChallengeResults = new ChallengeResultCollection <IChallengeResult>();

            CurrentEntity = ChallengeResults as ValidatableBindableBase;
        }
Exemplo n.º 7
0
        public async override void Prepare()
        {
            DogShowList = await _dogShowService.GetDogShowListAsync <DogShowDetail>();

            BreedGroupList = await _breedGroupService.GetListAsync <BreedGroupDetail>();

            BreedList = new List <IBreedEntity>();

            ChallengeResults = new ChallengeResultCollection <IChallengeResult>();

            CurrentEntity = ChallengeResults as ValidatableBindableBase;
        }
Exemplo n.º 8
0
        public async override void Prepare()
        {
            DogShowList = await _dogShowService.GetDogShowListAsync <DogShowDetail>();

            SelectedDogRegistration = await _dogRegistrationService.GetDogRegistrationAsync <DogRegistrationDetail>(data.DogId);

            IBreedEntryEntity entry = await _breedEntryService.GetBreedEntryAsync <BreedEntry>(data.Id);

            entry.Classes = await _dogShowService.GetListOfClassEntriesForBreedEntryAsync <BreedClassEntryEntityWithClassDetailForSelection>(data.Id);

            entry.Dog     = SelectedDogRegistration;
            CurrentEntity = (entry as BreedEntry);
            CurrentEntity.MarkEntityAsClean();
        }
        public async override void Prepare()
        {
            DogShowList = await _dogShowService.GetDogShowListAsync <DogShowDetail>();

            CurrentEntity = new MultipleBreedEntry();
            foreach (IDogShowEntity dogShow in DogShowList)
            {
                BreedEntry newEntry = new BreedEntry();
                newEntry.ShowId  = dogShow.Id;
                newEntry.DogShow = dogShow;
                newEntry.Dog     = SelectedDogRegistration;

                newEntry.Classes = await _dogShowService.GetListOfClassEntriesForNewBreedEntryAsync <BreedClassEntryEntityWithClassDetailForSelection>();

                newEntry.Classes.ForEach(c =>
                {
                    (c as BreedClassEntryEntityWithClassDetailForSelection).IsOutOfAgeRange = DetermineIfDogAgeIsOutOfRangeBasedOnClassMinAndMaxDates(newEntry.DogAgeInMonthsAtTimeOfShow, c.MinAgeInMonths, c.MaxAgeInMonths);
                });

                (CurrentEntity as MultipleBreedEntry).BreedEntries.Add(newEntry);
                (CurrentEntity as MultipleBreedEntry).NotifyEntriesChanged();
            }
        }