protected override void OnActivate()
        {
            var newLocation = new GitHubLocation(Username, RepositoryName);

            repositoryDetails.Location      = newLocation;
            links.Location                  = newLocation;
            contributors.RepositoryLocation = newLocation;

            base.OnActivate();

            NotifyOfPropertyChange(() => PivotTitle);
        }
Exemple #2
0
 public static bool Navigate(this INavigationService navigationService, GitHubLocation location)
 {
     return(navigationService.Navigate(To(location)));
 }
Exemple #3
0
        private static Uri To(GitHubLocation location)
        {
            var path = location.IsRepository ? RepositoryPivot : UserPivot;

            return(FormatUri(path, location));
        }
Exemple #4
0
        private static Uri FormatUri(string path, GitHubLocation location)
        {
            var parameters = location.RelativeAddress.Split('/');

            return(new Uri(string.Format(path, parameters), UriKind.RelativeOrAbsolute));
        }
Exemple #5
0
 public void OpenLocation(GitHubLocation location)
 {
     navigationService.Navigate(location);
 }