void FinishButtonOnClick(object sender, RoutedEventArgs e)
        {
            vitals.MomsMaidenName = txtboxMom.Text;
            vitals.Pet
                = Vitals.GetCheckedRadioButton(grpboxPet).Content as string;
            vitals.Income
                = Vitals.GetCheckedRadioButton(grpboxIncome).Content as string;
            WizardPage4 page = new WizardPage4(vitals);

            NavigationService.Navigate(page);
        }
예제 #2
0
        void FinishButtonOnClick(object sender, RoutedEventArgs args)
        {
            // Save information from this page.
            vitals.MomsMaidenName = txtboxMom.Text;
            vitals.Pet            =
                Vitals.GetCheckedRadioButton(grpboxPet).Content as string;
            vitals.Income =
                Vitals.GetCheckedRadioButton(grpboxIncome).Content as string;

            // Always re-create the final page.
            WizardPage4 page = new WizardPage4(vitals);

            NavigationService.Navigate(page);
        }
예제 #3
0
        void NextButtonOnClick(object sender, RoutedEventArgs e)
        {
            vitals.Name = txtboxName.Text;
            vitals.Home =
                Vitals.GetCheckedRadioButton(grpboxHome).Content as string;
            vitals.Gender =
                Vitals.GetCheckedRadioButton(grpboxGender).Content as string;

            if (NavigationService.CanGoForward)
            {
                NavigationService.GoForward();
            }
            else
            {
                WizardPage2 page = new WizardPage2(vitals);
                NavigationService.Navigate(page);
            }
        }