Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
        }