/// <summary> /// This will bind the text and navigation URL's for the links. When finished, it will call the DetermineVisibility method. /// </summary> private void BindNavigation() { hlHome.Text = Localization.GetString("hlHome", MyResourceFile); hlHome.NavigateUrl = Links.Home(ModContext.TabId); hlQuestions.Text = Localization.GetString("hlQuestions", MyResourceFile); hlQuestions.NavigateUrl = Links.ViewQuestions(ModContext); hlTags.Text = Localization.GetString("hlTags", MyResourceFile); hlTags.NavigateUrl = Links.ViewTags(ModContext); hlBadges.Text = Localization.GetString("hlBadges", MyResourceFile); hlBadges.NavigateUrl = Links.ViewBadges(ModContext); hlUnanswered.Text = Localization.GetString("hlUnanswered", MyResourceFile); hlUnanswered.NavigateUrl = Links.ViewUnansweredQuestions(ModContext, 1, ""); hlAskQuestion.Text = Localization.GetString("hlAskQuestion", MyResourceFile); hlAskQuestion.NavigateUrl = Links.AskQuestion(ModContext); imgSearch.ImageUrl = ResolveUrl("~/DesktopModules/DNNQA/images/searchButton_bg.png"); imgSearch.AlternateText = Localization.GetString("overlaySearch", MyResourceFile); imgSearch.ToolTip = Localization.GetString("overlaySearch", MyResourceFile); DetermineVisibility(); if (ModContext.PortalSettings.UserId > 0) { if (UserScore.Score == 0) { var objScoreLog = new UserScoreLogInfo { UserId = ModContext.PortalSettings.UserId, PortalId = ModContext.PortalId, UserScoringActionId = (int)Constants.UserScoringActions.FirstLoggedInView, Score = UserScoringCollection.Single( s => s.Key == Constants.UserScoringActions.ProvidedAnswer.ToString()).Value, CreatedOnDate = DateTime.Now }; Controller.AddScoringLog(objScoreLog, PrivilegeCollection); } } }