/// <param name="attr">Attribute of property</param> /// <param name="displaying">Displays element over the 'Name' property</param> public NodeInfo(ComponentAttribute attr, string displaying = null) : this(attr.Name, attr.Description, new NodeIdent(attr.Name, null), InfoType.Component, displaying) { Aliases = attr.Aliases; }
protected void fillComponents(ComponentAttribute attr, bool enabled, string className, DataGridView grid) { grid.Rows.Add(DomIcon.package, enabled, attr.Name, className, attr.Description); if(attr.Aliases == null) { return; } foreach(string alias in attr.Aliases) { int idx = grid.Rows.Add(DomIcon.alias, enabled, alias, className, String.Format("Alias to '{0}' Component", attr.Name)); grid.Rows[idx].ReadOnly = true; grid.Rows[idx].Cells[1] = new DataGridViewCheckBoxCell() { Style = { ForeColor = System.Drawing.Color.Transparent, SelectionForeColor = System.Drawing.Color.Transparent }}; } }
/// <param name="attr">Attribute of property</param> /// <param name="displaying">Displays element over the 'Name' property</param> public NodeInfo(ComponentAttribute attr, string displaying = null) : this(attr.Name, attr.Description, new NodeIdent(attr.Name, null), InfoType.Component, displaying) { Aliases = attr.Aliases; }