コード例 #1
0
            /// <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();
            }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 internal CommandTreeNode(string name, ObjectListCommand runtimeCommand)
     : base(name)
 {
     this._runtimeCommand = runtimeCommand;
     this.LoadAttributes();
 }
コード例 #4
0
 /// <include file='doc\ObjectListCommandCollection.uex' path='docs/doc[@for="ObjectListCommandCollection.Add"]/*' />
 public void Add(ObjectListCommand command)
 {
     AddAt(-1, command);
 }
コード例 #5
0
 /// <include file='doc\ObjectListCommandCollection.uex' path='docs/doc[@for="ObjectListCommandCollection.Add"]/*' />
 public void Add(ObjectListCommand command)
 {
     AddAt(-1, command);
 }