public override SyntaxNode VisitPageField(PageFieldSyntax node) { if (this.HasToolTip(node)) { return(base.VisitPageField(node)); } this.NoOfChanges++; //try to find source field caption string caption = null; if (node.Expression != null) { string source = ALSyntaxHelper.DecodeName(node.Expression.ToString()); if (!String.IsNullOrWhiteSpace(source)) { if (this.CurrentTable != null) { TableFieldTypeInformation tableField = this.CurrentTable.GetField(source); if ((tableField != null) && (!String.IsNullOrWhiteSpace(tableField.Caption))) { caption = tableField.Caption; } } if (String.IsNullOrWhiteSpace(caption)) { caption = source.Replace("\"", ""); } } } return(node.AddPropertyListProperties(this.CreateToolTipProperty(node, caption))); }
public override SyntaxNode VisitPageField(PageFieldSyntax node) { if (this.HasApplicationArea(node)) { return(base.VisitPageField(node)); } this.NoOfChanges++; return(node.AddPropertyListProperties(this.CreateApplicationAreaProperty(node))); }