public Part GetPart(int index) { if (partsCache.ContainsKey(index)) { return partsCache[index]; } else { IPart ipart; Marshal.ThrowExceptionForHR(_PartsList.GetPart(index, out ipart)); Part part = new Part(ipart); partsCache.Add(index, part); return part; } }
public PartsList GetSignalPath(Part from, Part to, bool rejectMixedPaths) { IPartsList partList; Marshal.ThrowExceptionForHR(_DeviceTopology.GetSignalPath((IPart)from, (IPart)to, rejectMixedPaths, out partList)); return new PartsList(partList); }
internal ControlChangeNotify(Part parent) { _Parent = parent; rcwHandle = GCHandle.Alloc(this, GCHandleType.Normal); }