Пример #1
0
        private string InstallModuleUI(IModule module)
        {
            StringBuilder info = new StringBuilder();

            info.AppendFormat("<h4>UI Definitions</h4>");
            info.Append("<ul>");
            foreach (var uidef in module.Requirements.UIDefinitions)
            {
                info.AppendFormat("<li>{0}", uidef.Name);
                if (_uiService.GetByName(uidef.Name) == null)
                {
                    _uiService.Add(uidef);
                    info.Append(" (Added)");
                }
                info.Append("</li>");
            }
            info.Append("</ul>");
            return(info.ToString());
        }
Пример #2
0
 public UIDefinition Get(string viewName)
 {
     return(_uiService.GetByName(viewName));
 }