Beispiel #1
0
        // compare page five
        public void LoadComparePopupGoViewModel(ComparePopupGoViewModel viewModel)
        {
            viewModel.Headline         = GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_HEADLINE, "COMPARE_DEVICE_FIVE_POP_HEADLINE");
            viewModel.SubHead          = GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_SUBHEAD, "COMPARE_DEVICE_FIVE_POP_SUBHEAD");
            viewModel.Lede             = GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_COPY, "COMPARE_DEVICE_FIVE_POP_COPY");
            viewModel.Legal            = GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_COPY_LEGAL, "COMPARE_DEVICE_FIVE_POP_COPY_LEGAL");
            viewModel.BulletOneLegal   = GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_ONE_LEGAL, "COMPARE_DEVICE_FIVE_POP_BULLET_ONE_LEGAL");
            viewModel.BulletTwoLegal   = GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_TWO_LEGAL, "COMPARE_DEVICE_FIVE_POP_BULLET_TWO_TITLE");
            viewModel.BulletThreeLegal = GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_THREE_LEGAL, "COMPARE_DEVICE_FIVE_POP_BULLET_THREE_LEGAL");
            viewModel.BulletFourLegal  = GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_FOUR_LEGAL, "COMPARE_DEVICE_FIVE_POP_BULLET_FOUR_LEGAL");
            viewModel.BulletFiveLegal  = GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_FIVE_LEGAL, "COMPARE_DEVICE_FIVE_POP_BULLET_FIVE_LEGAL");

            // bullet one
            viewModel.CompareListItems.Add(ListItem.CreateListItem(
                                               0,                                                                                                                     // order
                                               ListItemIcon.Lightweight,                                                                                              // icon enum name
                                               viewModel.ICON_WIDTH,                                                                                                  // width
                                               GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_ONE_TITLE, "COMPARE_DEVICE_FIVE_POP_BULLET_ONE_TITLE"), // headline
                                               GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_ONE_COPY, "COMPARE_DEVICE_FIVE_POP_BULLET_ONE_COPY")    // lede
                                               ));

            // bullet two
            viewModel.CompareListItems.Add(ListItem.CreateListItem(
                                               1,
                                               ListItemIcon.Performance,
                                               viewModel.ICON_WIDTH,
                                               GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_TWO_TITLE, "COMPARE_DEVICE_FIVE_POP_BULLET_TWO_TITLE"),
                                               GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_TWO_COPY, "COMPARE_DEVICE_FIVE_POP_BULLET_TWO_COPY")
                                               ));

            // bullet three
            viewModel.CompareListItems.Add(ListItem.CreateListItem(
                                               2,
                                               ListItemIcon.Battery,
                                               viewModel.ICON_WIDTH,
                                               GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_THREE_TITLE, "COMPARE_DEVICE_FIVE_POP_BULLET_THREE_TITLE"),
                                               GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_THREE_COPY, "COMPARE_DEVICE_FIVE_POP_BULLET_THREE_COPY")
                                               ));

            // bullet four
            viewModel.CompareListItems.Add(ListItem.CreateListItem(
                                               3,
                                               ListItemIcon.Display,
                                               viewModel.ICON_WIDTH,
                                               GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_FOUR_TITLE, "COMPARE_DEVICE_FIVE_POP_BULLET_FOUR_TITLE"),
                                               GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_FOUR_COPY, "COMPARE_DEVICE_FIVE_POP_BULLET_FOUR_COPY")
                                               ));

            // bullet five
            viewModel.CompareListItems.Add(ListItem.CreateListItem(
                                               4,
                                               ListItemIcon.Versatile,
                                               viewModel.ICON_WIDTH,
                                               GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_FIVE_TITLE, "COMPARE_DEVICE_FIVE_POP_BULLET_FIVE_TITLE"),
                                               GetStringValue(_languageCurrent.COMPARE_DEVICE_FIVE_POP_BULLET_FIVE_COPY, "COMPARE_DEVICE_FIVE_POP_BULLET_FIVE_COPY")
                                               ));
        }
        public void LoadPartnerViewModel(InTheBoxViewModel viewModel)
        {
            viewModel.Headline = GetStringValue(_languageCurrent.SPECS_WITB_HEADLINE, "SPECS_WITB_HEADLINE");


            // TODO: add code to load list
            // bullet one
            viewModel.ListItems.Add((ListItem.CreateListItem(
                                         0,                                                                                        // order
                                         ListItemIcon.HeadPhones,
                                         viewModel.ICON_WIDTH,                                                                     // width
                                         "",                                                                                       // header
                                         GetStringValue(_languageCurrent.SPECS_WITB_BULLETONE_TITLE, "SPECS_WITB_BULLETONE_TITLE") // order
                                         )));

            // bullet two
            viewModel.ListItems.Add((ListItem.CreateListItem(
                                         1,                                                                                        // order
                                         ListItemIcon.USB,                                                                         // icon enum name
                                         viewModel.ICON_WIDTH,                                                                     // width
                                         "",                                                                                       //header
                                         GetStringValue(_languageCurrent.SPECS_WITB_BULLETTWO_TITLE, "SPECS_WITB_BULLETTWO_TITLE") // order
                                         )));

            // bullet three
            viewModel.ListItems.Add((ListItem.CreateListItem(
                                         2,                                                                                            // order
                                         ListItemIcon.Stereo,                                                                          // icon enum name
                                         viewModel.ICON_WIDTH,                                                                         // width
                                         "",                                                                                           //header
                                         GetStringValue(_languageCurrent.SPECS_WITB_BULLETTHREE_TITLE, "SPECS_WITB_BULLETTHREE_TITLE") // order
                                         )));

            // bullet 4
            viewModel.ListItems.Add((ListItem.CreateListItem(
                                         3,                                                                                          // order
                                         ListItemIcon.Case,                                                                          // icon enum name
                                         viewModel.ICON_WIDTH,                                                                       // width
                                         "",                                                                                         // header
                                         GetStringValue(_languageCurrent.SPECS_WITB_BULLETFOUR_TITLE, "SPECS_WITB_BULLETFOUR_TITLE") // order
                                         )));

            // bullet 4
            viewModel.ListItems.Add((ListItem.CreateListItem(
                                         4,                                                                                          // order
                                         ListItemIcon.Docs,                                                                          // icon enum name
                                         viewModel.ICON_WIDTH,                                                                       // width
                                         "",                                                                                         // header
                                         GetStringValue(_languageCurrent.SPECS_WITB_BULLETFIVE_TITLE, "SPECS_WITB_BULLETFIVE_TITLE") // order
                                         )));
        }
        public Page3Page()
        {
            InitializeComponent();

            TestHelper.AddGridCellBorders(this.LayoutRoot, 7, 3, Colors.Orange);


            items[0] = ListItem.CreateListItem(0, ListItemIcon.Jot, 50d, null, ViewModel.BulletJot, null);

            items[1] = ListItem.CreateListItem(1, ListItemIcon.Write, 50d, ViewModel.HeadlineWrite, ViewModel.BulletWrite, null);

            items[2] = ListItem.CreateListItem(2, ListItemIcon.Pressure, 50d, ViewModel.HeadlinePressure, ViewModel.BulletPressure, null);

            items[3] = ListItem.CreateListItem(3, ListItemIcon.Palm, 50d, ViewModel.HeadlinePalm, ViewModel.BulletPalm, null);
        }
Beispiel #4
0
        public void LoadBestOfMicrosoftViewModel(BestOfMicrosoftViewModel viewModel)
        {
            viewModel.Headline         = GetStringValue(_languageCurrent.BEST_HEADLINE, "BEST_HEADLINE");
            viewModel.LegalBulletOne   = GetStringValue(_languageCurrent.BEST_BULLET_ONE_LEGAL, "BEST_BULLET_ONE_LEGAL");
            viewModel.LegalBulletTwo   = GetStringValue(_languageCurrent.BEST_BULLET_TWO_LEGAL, "BEST_BULLET_TWO_LEGAL");
            viewModel.LegalBulletThree = GetStringValue(_languageCurrent.BEST_BULLET_THREE_LEGAL, "BEST_BULLET_THREE_LEGAL");
            viewModel.LegalBulletFour  = GetStringValue(_languageCurrent.BEST_BULLET_FOUR_LEGAL, "BEST_BULLET_FOUR_LEGAL");
            viewModel.LegalBulletFive  = GetStringValue(_languageCurrent.BEST_BULLET_FIVE_LEGAL, "BEST_BULLET_FIVE_LEGAL");

            // bullet one
            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       0,                                                                               // order
                                       ListItemIcon.Start,                                                              // icon enum name
                                       viewModel.ICON_WIDTH,                                                            // width
                                       GetStringValue(_languageCurrent.BEST_BULLET_ONE_TITLE, "BEST_BULLET_ONE_TITLE"), // headline
                                       GetStringValue(_languageCurrent.BEST_BULLET_ONE_COPY, "BEST_BULLET_ONE_COPY"),   // lede
                                       null,                                                                            //CTA URI
                                       GetStringValue(_languageCurrent.BEST_BULLET_ONE_CTA, "BEST_BULLET_ONE_CTA")      //CTA Text
                                       ));

            // bullet two
            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       1,
                                       ListItemIcon.Sync,
                                       viewModel.ICON_WIDTH,
                                       GetStringValue(_languageCurrent.BEST_BULLET_TWO_TITLE, "BEST_BULLET_TWO_TITLE"),
                                       GetStringValue(_languageCurrent.BEST_BULLET_TWO_COPY, "BEST_BULLET_TWO_COPY"),
                                       null,
                                       GetStringValue(_languageCurrent.BEST_BULLET_TWO_CTA, "BEST_BULLET_TWO_CTA")
                                       ));

            // bullet four
            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       2,
                                       ListItemIcon.Hello,
                                       viewModel.ICON_WIDTH,
                                       GetStringValue(_languageCurrent.BEST_BULLET_THREE_TITLE, "BEST_BULLET_THREE_TITLE"),
                                       GetStringValue(_languageCurrent.BEST_BULLET_THREE_COPY, "BEST_BULLET_THREE_COPY"),
                                       null,
                                       GetStringValue(_languageCurrent.BEST_BULLET_THREE_CTA, "BEST_BULLET_THREE_CTA")
                                       ));

            // bullet five
            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       3,
                                       ListItemIcon.Office,
                                       viewModel.ICON_WIDTH,
                                       GetStringValue(_languageCurrent.BEST_BULLET_FOUR_TITLE, "BEST_BULLET_FOUR_TITLE"),
                                       GetStringValue(_languageCurrent.BEST_BULLET_FOUR_COPY, "BEST_BULLET_FOUR_COPY"),
                                       null,
                                       GetStringValue(_languageCurrent.BEST_BULLET_FOUR_CTA, "BEST_BULLET_FOUR_CTA")
                                       ));

            // bullet three OPTIONAL BULLET
            if (!String.IsNullOrWhiteSpace(_languageCurrent.BEST_BULLET_FIVE_TITLE) &&
                !String.IsNullOrWhiteSpace(_languageCurrent.BEST_BULLET_FIVE_COPY))      // use AND here because BOM has headline AND lede and either one missing means we don't show the bullet
            {
                viewModel.ItemList.Add(ListItem.CreateListItem(
                                           4,
                                           ListItemIcon.Custom,
                                           viewModel.ICON_WIDTH,
                                           GetStringValue(_languageCurrent.BEST_BULLET_FIVE_TITLE, "BEST_BULLET_FIVE_TITLE"),
                                           GetStringValue(_languageCurrent.BEST_BULLET_FIVE_COPY, "BEST_BULLET_FIVE_COPY"),
                                           null,
                                           GetStringValue(_languageCurrent.BEST_BULLET_FIVE_CTA, "BEST_BULLET_FIVE_CTA")
                                           ));
            }
        }
        public void LoadSpecsViewModel(SpecsViewModel viewModel)
        {
            viewModel.Headline         = GetStringValue(_languageCurrent.SPECS_SPECS_HEADLINE, "SPECS_SPECS_HEADLINE");
            viewModel.LegalBulletOne   = GetStringValue(_languageCurrent.SPECS_SPECS_BULLETONE_LEGAL, "SPECS_SPECS_BULLETONE_LEGAL");
            viewModel.LegalBulletTwo   = GetStringValue(_languageCurrent.SPECS_SPECS_BULLETTWO_LEGAL, "SPECS_SPECS_BULLETTWO_LEGAL");
            viewModel.LegalBulletThree = GetStringValue(_languageCurrent.SPECS_SPECS_BULLETTHREE_LEGAL, "SPECS_SPECS_BULLETTHREE_LEGAL");
            viewModel.LegalBulletFour  = GetStringValue(_languageCurrent.SPECS_SPECS_BULLETFOUR_LEGAL, "SPECS_SPECS_BULLETFOUR_LEGAL");
            viewModel.LegalBulletFive  = GetStringValue(_languageCurrent.SPECS_SPECS_BULLETFIVE_LEGAL, "SPECS_SPECS_BULLETFIVE_LEGAL");
            viewModel.LegalBulletSix   = GetStringValue(_languageCurrent.SPECS_SPECS_BULLETSIX_LEGAL, "SPECS_SPECS_BULLETSIX_LEGAL");
            viewModel.LegalBulletSeven = GetStringValue(_languageCurrent.SPECS_SPECS_BULLETSEVEN_LEGAL, "SPECS_SPECS_BULLETSEVEN_LEGAL");

            // ---------------------------------------------------------------------------------------------------------------
            // NOTE - PSS: The copy has changed here to include both Imperial and Metric measurements, so we must choose
            // which to use. For now, we're going to use Imperial (BRT).
            // ---------------------------------------------------------------------------------------------------------------
            string bulletOneCopyBritish = GetStringValue(_languageCurrent.SPECS_SPECS_BULLETONE_COPY_BRT, "SPECS_SPECS_BULLETONE_COPY_BRT");
            string bulletOneCopyMetric  = GetStringValue(_languageCurrent.SPECS_SPECS_BULLETONE_COPY_MET, "SPECS_SPECS_BULLETONE_COPY_MET");

            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       0,                                                                                           // order
                                       ListItemIcon.Dimensions,                                                                     // icon enum name
                                       viewModel.ICON_WIDTH,                                                                        // width
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETONE_TITLE, "SPECS_SPECS_BULLETONE_TITLE"), // order
                                       bulletOneCopyBritish + "\n" + bulletOneCopyMetric                                            // order  // NOTE - PSS - USING BRITISH FOR NOW SINCE THIS IS US-ONLY
                                       ));

            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       1,                                                                                        // order
                                       ListItemIcon.Weight,                                                                      // icon enum name
                                       viewModel.ICON_WIDTH,                                                                     // width
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETTWO_TITLE, "SPECS_SPECS_BULLETTWO_TITLE"),
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETTWO_COPY, "SPECS_SPECS_BULLETTWO_COPY") // order
                                       ));

            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       2,                                                                                             // order
                                       ListItemIcon.Speaker,                                                                          // icon enum name
                                       viewModel.ICON_WIDTH,                                                                          // width
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETTHREE_TITLE, "SPECS_SPECS_BULLETTHREE_TITLE"),
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETTHREE_COPY, "SPECS_SPECS_BULLETTTHREE_COPY") // order
                                       ));

            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       3,                                                                                             // order
                                       ListItemIcon.Frequency,                                                                        // icon enum name
                                       viewModel.ICON_WIDTH,                                                                          // width
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETFOUR_TITLE, "SPECS_SPECS_BULLETFOUR_TITLE"), // order
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETFOUR_COPY, "SPECS_SPECS_BULLETFOUR_COPY")    // order
                                       ));

            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       4,                                                                                          // order
                                       ListItemIcon.BatteryLife,                                                                   // icon enum name
                                       viewModel.ICON_WIDTH,                                                                       // width
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETFIVE_TITLE, "SPECS_SPECS_BULLETFIVE_TITLE"),
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETFIVE_COPY, "SPECS_SPECS_BULLETFIVE_COPY") // order
                                       ));

            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       5,                                                                                        // order
                                       ListItemIcon.NoiseCancellation,                                                           // icon enum name
                                       viewModel.ICON_WIDTH,                                                                     // width
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETSIX_TITLE, "SPECS_SPECS_BULLETSIX_TITLE"),
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETSIX_COPY, "SPECS_SPECS_BULLETSIX_COPY") // order
                                       ));

            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       6,                                                                                            // order
                                       ListItemIcon.Inputs,                                                                          // icon enum name
                                       viewModel.ICON_WIDTH,                                                                         // width
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETSEVEN_TITLE, "SPECS_SPECS_BULLETSEVEN_TITLE"),
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETSEVEN_COPY, "SPECS_SPECS_BULLETSEVEN_COPY") // order
                                       ));

            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       7,                                                                                               // order
                                       ListItemIcon.Compatibility,                                                                      // icon enum name
                                       viewModel.ICON_WIDTH,                                                                            // width
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETEIGHT_TITLE, "SPECS_SPECS_BULLETEIGHT_TITLE"), // order
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETEIGHT_COPY, "SPECS_SPECS_BULLETEIGHT_COPY")    // order
                                       ));

            viewModel.ItemList.Add(ListItem.CreateListItem(
                                       8,                                                                                             // order
                                       ListItemIcon.TouchControls,                                                                    // icon enum name
                                       viewModel.ICON_WIDTH,                                                                          // width
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETNINE_TITLE, "SPECS_SPECS_BULLETNINE_TITLE"), // order
                                       GetStringValue(_languageCurrent.SPECS_SPECS_BULLETNINE_COPY, "SPECS_SPECS_BULLETNINE_COPY")    // order
                                       ));
        }