public async override void GetValuesFromNavigationParameters(NavigationContext navigationContext) { GenderList = await _genderService.GetListAsync <GenderDetail>(); BreedList = await _breedService.GetListAsync <BreedDetail>(); CurrentEntity = navigationContext.Parameters["entity"] as ValidatableBindableBase; CurrentEntity.MarkEntityAsClean(); }
public async override void Prepare() { CurrentEntity = new DogRegistrationDetail(); IDogRegistration entity = CurrentEntity as IDogRegistration; if (entity != null) { entity.RegisteredOwnerSurname = _globalContextService.RegisteredOwnerSurname; entity.RegisteredOwnerTitle = _globalContextService.RegisteredOwnerTitle; entity.RegisteredOwnerInitials = _globalContextService.RegisteredOwnerInitials; entity.RegisteredOwnerAddress = _globalContextService.RegisteredOwnerAddress; entity.RegisteredOwnerPostalCode = _globalContextService.RegisteredOwnerPostalCode; entity.RegisteredOwnerKUSANo = _globalContextService.RegisteredOwnerKUSANo; entity.RegisteredOwnerTel = _globalContextService.RegisteredOwnerTel; entity.RegisteredOwnerCell = _globalContextService.RegisteredOwnerCell; entity.RegisteredOwnerFax = _globalContextService.RegisteredOwnerFax; entity.RegisteredOwnerEmail = _globalContextService.RegisteredOwnerEmail; } GenderList = await _genderService.GetListAsync <GenderDetail>(); BreedList = await _breedService.GetListAsync <BreedDetail>(); }