public WideControlEntryItem(System.Management.Automation.DisplayEntry entry)
 {
     this._selectedBy = new List <string>();
     if (entry == null)
     {
         throw PSTraceSource.NewArgumentNullException("entry");
     }
     this._entry = entry;
 }
示例#2
0
 public WideControlEntryItem(System.Management.Automation.DisplayEntry entry)
 {
     this._selectedBy = new List<string>();
     if (entry == null)
     {
         throw PSTraceSource.NewArgumentNullException("entry");
     }
     this._entry = entry;
 }
示例#3
0
 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);
     }
 }
示例#4
0
 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);
     }
 }
示例#5
0
 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);
     }
 }
示例#7
0
 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 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);
                }
            }
        }
示例#9
0
 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);
         }
     }
 }
示例#10
0
        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);
                }
            }
        }
示例#11
0
 public TableControlColumn(System.Management.Automation.Alignment alignment, System.Management.Automation.DisplayEntry entry)
 {
     this._alignment = alignment;
     this._entry = entry;
 }
示例#12
0
 public ListControlEntryItem(string label, System.Management.Automation.DisplayEntry entry)
 {
     this._label = label;
     this._entry = entry;
 }
示例#13
0
 public ListControlEntryItem(string label, System.Management.Automation.DisplayEntry entry)
 {
     this._label = label;
     this._entry = entry;
 }
示例#14
0
 public TableControlColumn(System.Management.Automation.Alignment alignment, System.Management.Automation.DisplayEntry entry)
 {
     this._alignment = alignment;
     this._entry     = entry;
 }