public LifetimeEconomicValueViewModel(ISharedDataService sharedData, IViewModelLocator locator)
            : base(new Guid("6D2F7E48-8A1E-475C-8297-811D83F46CBE"))
        {
            Name = "Lifetime Economic Value";
            _person = sharedData.Person;

            AddToolPages(
                new Page1(_person, locator.Mode),
                new Page2(this, locator.Mode));
        }
        public BasicInformationToolViewModel(ISharedDataService dataService, IViewModelLocator locator)
            : base(new Guid("74EF5D9B-E6D1-4218-8755-C8349157FAAE"))
        {
            _person = dataService.Person;
            Name = "Basic Information";

            AddToolPages(
                new Page1(this, locator.Mode),
                new Page2(this, locator.Mode),
                new Page3(this, locator.Mode));
        }
        public AnotherSampleToolViewModel(ISharedDataService dataService)
            : base(new Guid("FC8C62F6-05D9-42FA-8FDA-1CC16D62769D"))
        {
            _person = dataService.Person;

            Name = "Another Sample Tool";

            AddToolPages(
                new Page1(),
                new Page2(this));
        }
        public SampleToolViewModel(ISharedDataService dataService)
            : base(new Guid("46A3FF71-ED2C-431F-86EF-A33B1D490E6D"))
        {
            _person = dataService.Person;

            Name = "Sample Tool";

            AddToolPages(
                new Page1(),
                new Page2(this),
                new Page3());
        }
 public Page1(PersonModel person, AppMode mode)
 {
     Person = person;
     Mode = mode;
 }
 public SharedDataService()
 {
     Person = new PersonModel();
     MeetingState = new MeetingStateModel();
     AnnotationsModel = new AnnotationsModel();
 }
        public async Task GenerateIllustration(Guid meetingId, PersonModel model)
        {
            var illustrationRequest = new IllustrationRequest
            {
                FirstName = model.FirstName,
                LastName = model.LastName,
                Gender = model.Gender,
                IsSmoker = model.IsSmoker,
                DateOfBirth = model.DateOfBirth,
                Age = model.Age,
                NumOfDependents = model.NumOfDependents,
                RetirementAge = model.RetirementAge,
                ExistingCoverage = model.ExistingCoverage,
                RequestedCoverage = model.CoverageAmountRequesting,
                AnnualIncome = model.AnnualIncome,
                AnnualIncomeGrowthPercentage = model.AnnualIncomeGrowthPercent,
                Addr1 = model.Addr1,
                Addr2 = model.Addr2,
                City = model.City,
                State = model.State, 
                Zip = model.Zip
            };

            await ConnectedTask;
            await Proxy.Invoke("generateAndSaveIllustration", meetingId, illustrationRequest);
        }