Esempio n. 1
0
 private void btnBack_Click(object sender, RoutedEventArgs e)
 {
     if (DB.IsManager(person) == false)
     {
         PersonRequestPage personRequestPage = new PersonRequestPage(person);
         NavigationService.Navigate(personRequestPage);
     }
     if (DB.IsManager(person) == true)
     {
         ManagerRequestPage managerRequestPage = new ManagerRequestPage(person);
         NavigationService.Navigate(managerRequestPage);
     }
     if (DB.IsLocationManager(person) == true)
     {
         LocationManagerRequestPage locationManagerRequestPage = new LocationManagerRequestPage(person);
         NavigationService.Navigate(locationManagerRequestPage);
     }
 }
 private void GoBack()
 {
     if (DB.IsManager(_person) == false)
     {
         PersonRequestPage personRequestPage = new PersonRequestPage(_person);
         NavigationService.Navigate(personRequestPage);
     }
     if (DB.IsManager(_person) == true)
     {
         ManagerRequestPage managerRequestPage = new ManagerRequestPage(_person);
         NavigationService.Navigate(managerRequestPage);
     }
     if (DB.IsLocationManager(_person) == true)
     {
         LocationManagerRequestPage locationManagerRequestPage = new LocationManagerRequestPage(_person);
         NavigationService.Navigate(locationManagerRequestPage);
     }
 }
        private void btnUnsubscribe_Click(object sender, RoutedEventArgs e)
        {
            PersonRequestPage personRequestPage = new PersonRequestPage(_person);

            NavigationService.Navigate(personRequestPage);
        }