protected override async void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            this.Id = long.Parse(NavigationManager.GetQueryParameter("id"));
            var workspace = await new StorageService().Find <AsanaWorkspace>(Id);

            Workspace = workspace;
            IsPinned  = PinService.Exists(PinService.GetWorkspaceDetailsUri(Id));
        }
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            Container.Resolve <IMessagePublisher>().Register(this);
            var userId = long.Parse(NavigationManager.GetQueryParameter("id"));

            UserId   = userId;
            IsPinned = PinService.Exists(PinService.GetUserDetailsUri(userId));
        }
Example #3
0
        protected override async void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            Container.Resolve <IMessagePublisher>().Register(this);

            var id = long.Parse(NavigationManager.GetQueryParameter("id"));

            Id = id;
            var project = await new StorageService().Find <AsanaProject>(Id);

            //project.notes = TextHelper.SafeTruncate(project.notes, 100);
            Project = project;

            IsPinned = PinService.Exists(PinService.GetProjectDetailsUri(Id));
        }