public WideControlEntryItem(System.Management.Automation.DisplayEntry entry) { this._selectedBy = new List <string>(); if (entry == null) { throw PSTraceSource.NewArgumentNullException("entry"); } this._entry = entry; }
public WideControlEntryItem(System.Management.Automation.DisplayEntry entry) { this._selectedBy = new List<string>(); if (entry == null) { throw PSTraceSource.NewArgumentNullException("entry"); } this._entry = entry; }
internal TableControlColumn(string text, int alignment, bool isscriptblock) { this._alignment = (System.Management.Automation.Alignment) alignment; if (isscriptblock) { this._entry = new System.Management.Automation.DisplayEntry(text, DisplayEntryValueType.ScriptBlock); } else { this._entry = new System.Management.Automation.DisplayEntry(text, DisplayEntryValueType.Property); } }
internal TableControlColumn(string text, int alignment, bool isscriptblock) { this._alignment = (System.Management.Automation.Alignment)alignment; if (isscriptblock) { this._entry = new System.Management.Automation.DisplayEntry(text, DisplayEntryValueType.ScriptBlock); } else { this._entry = new System.Management.Automation.DisplayEntry(text, DisplayEntryValueType.Property); } }
public WideControlEntryItem(System.Management.Automation.DisplayEntry entry, IEnumerable<string> selectedBy) { this._selectedBy = new List<string>(); if (entry == null) { throw PSTraceSource.NewArgumentNullException("entry"); } if (selectedBy == null) { throw PSTraceSource.NewArgumentNullException("selectedBy"); } this._entry = entry; foreach (string str in selectedBy) { this._selectedBy.Add(str); } }
public WideControlEntryItem(System.Management.Automation.DisplayEntry entry, IEnumerable <string> selectedBy) { this._selectedBy = new List <string>(); if (entry == null) { throw PSTraceSource.NewArgumentNullException("entry"); } if (selectedBy == null) { throw PSTraceSource.NewArgumentNullException("selectedBy"); } this._entry = entry; foreach (string str in selectedBy) { this._selectedBy.Add(str); } }
internal ListControlEntryItem(ListControlItemDefinition definition) { if (definition.label != null) { this._label = definition.label.text; } FieldPropertyToken token = definition.formatTokenList[0] as FieldPropertyToken; if (token != null) { if (token.expression.isScriptBlock) { this._entry = new System.Management.Automation.DisplayEntry(token.expression.expressionValue, DisplayEntryValueType.ScriptBlock); } else { this._entry = new System.Management.Automation.DisplayEntry(token.expression.expressionValue, DisplayEntryValueType.Property); } } }
internal WideControlEntryItem(WideControlEntryDefinition definition) { this._selectedBy = new List<string>(); FieldPropertyToken token = definition.formatTokenList[0] as FieldPropertyToken; if (token != null) { if (token.expression.isScriptBlock) { this._entry = new System.Management.Automation.DisplayEntry(token.expression.expressionValue, DisplayEntryValueType.ScriptBlock); } else { this._entry = new System.Management.Automation.DisplayEntry(token.expression.expressionValue, DisplayEntryValueType.Property); } } if (definition.appliesTo != null) { foreach (TypeOrGroupReference reference in definition.appliesTo.referenceList) { this._selectedBy.Add(reference.name); } } }
internal WideControlEntryItem(WideControlEntryDefinition definition) { this._selectedBy = new List <string>(); FieldPropertyToken token = definition.formatTokenList[0] as FieldPropertyToken; if (token != null) { if (token.expression.isScriptBlock) { this._entry = new System.Management.Automation.DisplayEntry(token.expression.expressionValue, DisplayEntryValueType.ScriptBlock); } else { this._entry = new System.Management.Automation.DisplayEntry(token.expression.expressionValue, DisplayEntryValueType.Property); } } if (definition.appliesTo != null) { foreach (TypeOrGroupReference reference in definition.appliesTo.referenceList) { this._selectedBy.Add(reference.name); } } }
public TableControlColumn(System.Management.Automation.Alignment alignment, System.Management.Automation.DisplayEntry entry) { this._alignment = alignment; this._entry = entry; }
public ListControlEntryItem(string label, System.Management.Automation.DisplayEntry entry) { this._label = label; this._entry = entry; }