OpenHome.Net.ControlPoint.CpDeviceList.Added C# (CSharp) Method

Added() private method

private Added ( IntPtr aPtr, IntPtr aHandle ) : void
aPtr System.IntPtr
aHandle System.IntPtr
return void
        protected static void Added(IntPtr aPtr, IntPtr aHandle)
        {
            CpDevice device = new CpDevice(aHandle);
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            CpDeviceList list = (CpDeviceList)gch.Target;
            if (list.iAdded != null) {
                CallListChangedDelegate(list.iAdded, list, device);
            }
        }