Пример #1
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            Messenger.Default.Send(new GlobalHelper.SetHeaderTextMessageType {
                PageName = "Profile"
            });
            await ViewModel.Load(e.Parameter as string);
        }
Пример #2
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            await ViewModel.Load(e.Parameter);

            if (ViewModel.Developer != null)
            {
                if (ViewModel.Developer.Type == Octokit.AccountType.Organization)
                {
                    Messenger.Default.Send(new GlobalHelper.SetHeaderTextMessageType {
                        PageName = "Organization"
                    });
                    Pivot.Items.Remove(FollowersPivotItem);
                    Pivot.Items.Remove(FollowingPivotItem);
                }
            }
        }
Пример #3
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            await ViewModel.Load(e.Parameter as string);

            if (ViewModel.Developer.Type == Octokit.AccountType.Organization)
            {
                Messenger.Default.Send(new GlobalHelper.SetHeaderTextMessageType {
                    PageName = "Organization"
                });
            }
            else
            {
                Messenger.Default.Send(new GlobalHelper.SetHeaderTextMessageType {
                    PageName = "Profile"
                });
            }
        }
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            await ViewModel.Load(e.Parameter);

            if (ViewModel.Developer != null)
            {
                if (ViewModel.Developer.Type == Octokit.AccountType.Organization)
                {
                    var languageLoader = new Windows.ApplicationModel.Resources.ResourceLoader();

                    Messenger.Default.Send(new GlobalHelper.SetHeaderTextMessageType {
                        PageName = languageLoader.GetString("pageTitle_OrganizationView")
                    });
                    Pivot.Items.Remove(FollowersPivotItem);
                    Pivot.Items.Remove(FollowingPivotItem);
                }
            }
        }