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);
        }
 //������������ ����(���������� �Է��ߴ� ������ �����)
 void BeginButtonOnClick(object sender, RoutedEventArgs args)
 {
     if (NavigationService.CanGoForward)
         NavigationService.GoForward();
     else
     {
         Vitals vitals = new Vitals();
         WizardPage1 page = new WizardPage1(vitals);      //������ �ٽû���
         NavigationService.Navigate(page);
     }
 }
 public WizardPage4(Vitals vitals)
 {
     InitializeComponent();
     runName.Text           = vitals.Name;
     runHome.Text           = vitals.Home;
     runGender.Text         = vitals.Gender;
     runOS.Text             = vitals.FavoriteOS;
     runDirectory.Text      = vitals.Directory;
     runMomsMaidenName.Text = vitals.MomsMaidenName;
     runPet.Text            = vitals.Pet;
     runIncome.Text         = vitals.Income;
 }
 void BeginButtonOnClick(object sender, RoutedEventArgs args)
 {
     if (NavigationService.CanGoForward)
     {
         NavigationService.GoForward();
     }
     else
     {
         Vitals      vitals = new Vitals();
         WizardPage1 page   = new WizardPage1(vitals);
         NavigationService.Navigate(page);
     }
 }
Exemple #5
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);
        }
        // Constructor.
        public WizardPage4(Vitals vitals)
        {
            InitializeComponent();

            // Set text in the page.
            runName.Text = vitals.Name;
            runHome.Text = vitals.Home;
            runGender.Text = vitals.Gender;
            runOS.Text = vitals.FavoriteOS;
            runDirectory.Text = vitals.Directory;
            runMomsMaidenName.Text = vitals.MomsMaidenName;
            runPet.Text = vitals.Pet;
            runIncome.Text = vitals.Income;
        }
Exemple #7
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);
            }
        }
 // ������.
 public WizardPage3(Vitals vitals)
 {
     InitializeComponent();
     this.vitals = vitals;
 }
 public WizardPage2(Vitals vitals)
 {
     InitializeComponent();
     this.vitals = vitals;
 }
 // Constructors.
 public WizardPage1(Vitals vitals)
 {
     InitializeComponent();
     this.vitals = vitals;           //������ ��ü���� ���� Vitals ��ü�� �޾� �ʵ忡 ����
 }