Пример #1
0
        public override string GetText(MenuItemContext context)
        {
            var harborApp = context.GetDependency<IHarborAppRepository>().GetApp();
            if (string.IsNullOrEmpty(harborApp.GoogleAnalyticsAccount))
            {
                return "Google Analytics (not configured)";
            }

            return "Google Analytics " + harborApp.GoogleAnalyticsAccount;
        }
Пример #2
0
 public override string GetText(MenuItemContext context)
 {
     var harborApp = context.GetDependency<IHarborAppRepository>().GetApp();
     return "About version " + harborApp.Version;
 }