Ejemplo n.º 1
0
 protected string GetIsPackageInUseInfo(object dataItem)
 {
     if ((dataItem is PackageInfo))
     {
         var package = (PackageInfo)dataItem;
         if ((package.PackageType.ToUpper() == "MODULE"))
         {
             return(PackagesInUse.ContainsKey(package.PackageID) ? "<a href=\"" + ModuleContext.EditUrl("PackageID", package.PackageID.ToString(), "UsageDetails") + "\">" + LocalizeString("Yes") + "</a>" : LocalizeString("No"));
         }
     }
     return(string.Empty);
 }
Ejemplo n.º 2
0
        protected string GetIsPackageInUseInfo(object dataItem)
        {
            var info = dataItem as PackageInfo;

            if (info != null)
            {
                var package = info;
                if ((package.PackageType.ToUpper() == "MODULE"))
                {
                    return(PackagesInUse.ContainsKey(package.PackageID) ? "<a href=\"" + ModuleContext.EditUrl("PackageID", package.PackageID.ToString(CultureInfo.InvariantCulture), "UsageDetails") + "\">" + LocalizeString("Yes") + "</a>" : LocalizeString("No"));
                }
            }
            return(string.Empty);
        }