Esempio n. 1
0
        void client_CreateDonorProfileCompleted(object sender, CreateDonorProfileCompletedEventArgs e)
        {
            DonorProfile profile = e.Result;

            if (profile == null)
            {
                setErrorMessage("An error occurred while trying to create the profile.");
            }
            else
            {
                SecurityManager.SetLocalAuthenticationInformation(profile);
                NavigationService.Navigate(new Uri("/Pages/MainPage.xaml", UriKind.Relative));
            }
        }
Esempio n. 2
0
        void client_CreateDonorProfileCompleted(object sender, CreateDonorProfileCompletedEventArgs e)
        {
            DonorProfile profile = e.Result;

            if (profile == null)
            {
                setErrorMessage("An error occurred while trying to create the profile.");
            }
            else
            {
                SecurityManager.SetLocalAuthenticationInformation(profile);
                NavigationService.Navigate(new Uri("/Pages/MainPage.xaml", UriKind.Relative));
            }
        }