Exemple #1
0
 private void OnOKClick(object sender, RoutedEventArgs e)
 {
     if (IsValid())
     {
         StaticUser.FirstName   = tbFirstName.Text;
         StaticUser.LastName    = tbLastName.Text;
         StaticUser.DateOfBirth = dpDateOfBirth.Text;
         StaticUser.Address     = tbAddress.Text;
         StaticUser.City        = tbCity.Text;
         StaticUser.Province    = cbProvince.Text;
         StaticUser.PostalCode  = tbPostalCode.Text;
         StaticUser.PhoneNumber = tbPhoneNumber.Text;
         StaticUser.Email       = tbEmail.Text;
         home home = new home();
         this.NavigationService.Navigate(home);
     }
 }
Exemple #2
0
        // cancle pressed and they want to go home
        private void OnYesClick(object sender, RoutedEventArgs e)
        {
            home homePage = new home();

            this.NavigationService.Navigate(homePage);
        }