Microsoft.ManagementConsole.ActionsPaneItemCollection.OnItemsAdded C# (CSharp) Method

OnItemsAdded() protected method

protected OnItemsAdded ( int index, object items ) : void
index int
items object
return void
        protected override void OnItemsAdded(int index, object[] items)
        {
            foreach (ActionsPaneItem item in items)
            {
                item.Data.InsertionLocation = this.InsertionLocation;
                item.Changed += new EventHandler(this.ItemChanged);
            }
            ActionsPaneItem[] destinationArray = new ActionsPaneItem[items.Length];
            Array.Copy(items, destinationArray, items.Length);
            this.SyncData();
            this.Notify(index, destinationArray, ActionsPaneItemCollectionChangeType.Add);
        }