Esempio n. 1
0
        public static string Comment(IPropertiesTab t, string indent = "")
        {
            var sb = new StringBuilder();

            sb.Append(indent);
            sb.Append(commentBegSummary);
            sb.AppendLine();

            sb.Append(indent);
            sb.Append(comment);
            sb.Append("UI name: ");
            sb.Append(t.NameUi);
            sb.AppendLine();

            if (!string.IsNullOrWhiteSpace(t.Description))
            {
                sb.Append(indent);
                sb.Append(comment);
                //sb.Append("Description: ");
                sb.Append(t.Description);
                sb.AppendLine();
            }

            sb.Append(indent);
            sb.Append(commentEndSummary);
            return(sb.ToString());
        }
 protected override void BeginVisit(IPropertiesTab t)
 {
     if (t is INodeGenSettings)
     {
         _act(t as INodeGenSettings);
     }
 }
Esempio n. 3
0
        private void VisitTabs(string appGenGuig, IPropertiesTab p, Action <List <TableInfo> > action, EnumVisitType typeOp, List <TableInfo> lst = null)
        {
            if (lst == null)
            {
                lst = new List <TableInfo>();
            }
            var lstt = p.GetIncludedPropertiesTabs(appGenGuig);

            if (lstt.Count == 0)
            {
                return;
            }
            TabsRecursive(appGenGuig, lstt, action, typeOp, lst);
        }
Esempio n. 4
0
 protected virtual void Visit(IPropertiesTab t)
 {
 }