Пример #1
0
        protected string GetNodeGlyph(TreeListDataCellTemplateContainer container)
        {
            string fmt = "~/Content/Images/{0}.png";

            if (container.NodeKey == null)
            {
                return(string.Format(fmt, "closed"));
            }
            string name = container.GetValue(FileManagerHelper.FullPathName).ToString();

            if (Directory.Exists(name))
            {
                if (container.Expandable && container.Expanded)
                {
                    return(string.Format(fmt, "opened"));
                }
                return(string.Format(fmt, "closed"));
            }
            return(string.Format(fmt, "file"));
        }
 protected string GetIconUrl(TreeListDataCellTemplateContainer container)
 {
     return(string.Format("~/Images/Menu/{0}.png", container.GetValue("IconName")));
 }
Пример #3
0
 protected string GetRegIconUrl(TreeListDataCellTemplateContainer container)
 {
     return string.Format("~/Content/Images/Icons/{0}.png", container.GetValue("IconName"));
 }