/// <summary> /// </summary> internal CommandTreeNode(String name, ObjectListCommand runtimeCommand) : base(name) { Debug.Assert(name != null, "invalid name for ObjectListCommand"); Debug.Assert(runtimeCommand != null, "null ObjectListCommand"); this._runtimeCommand = runtimeCommand; LoadAttributes(); }
/// <include file='doc\ObjectListCommandCollection.uex' path='docs/doc[@for="ObjectListCommandCollection.AddAt"]/*' /> public void AddAt(int index, ObjectListCommand command) { if (index == -1) { Items.Add(command); } else { Items.Insert(index, command); } command.Owner = this; SetDirty(); }
internal CommandTreeNode(string name, ObjectListCommand runtimeCommand) : base(name) { this._runtimeCommand = runtimeCommand; this.LoadAttributes(); }
/// <include file='doc\ObjectListCommandCollection.uex' path='docs/doc[@for="ObjectListCommandCollection.Add"]/*' /> public void Add(ObjectListCommand command) { AddAt(-1, command); }