void NextButtonOnClick(object sender, RoutedEventArgs args)
        {
            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);
            }
        }
Exemplo n.º 2
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);
            }
        }