예제 #1
0
        private void FinishButtonOnClick(object sender, RoutedEventArgs e)
        {
            vitals.MomsMaidenName = this.txtboxMom.Text;
            vitals.Pet            = Vitals.GetCheckedRadioButton(this.grpboxPet).Content as string;
            vitals.Income         = Vitals.GetCheckedRadioButton(this.grpboxIncome).Content as string;

            WizardPage4 page = new WizardPage4(vitals); //这里没有使用GoForward方法,是为了调用一次WizardPage4里的构造函数。

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

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