Beispiel #1
0
        public FinalBenefitPage()
        {
            this.InitializeComponent();
            surveyPage = new SurveyPage(0);

            randomBenefitList = new ObservableCollection <Benefit>();
            for (int i = 0; i < 8; i++)
            {
                Random randomGenerator = new Random();
                int    randomIndex     = randomGenerator.Next(0, 4);
                if (App.SurveyBenefitCollection.FinalBenefitList[i][randomIndex] != null)
                {
                    randomBenefitList.Add(App.SurveyBenefitCollection.FinalBenefitList[i][randomIndex]);
                }
                else
                {
                    randomBenefitList.Add(new Benefit());
                }
            }
        }
Beispiel #2
0
 public SurveyPage3()
 {
     this.InitializeComponent();
     surveyPage = new SurveyPage(2);
 }
 public TitlePage()
 {
     this.InitializeComponent();
     surveyPage = new SurveyPage(0);
     surveyName = App.surveyFolder.Name;
 }