예제 #1
0
 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;
     }
 }
예제 #2
0
 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);
 }
예제 #3
0
 internal ControlChangeNotify(Part parent)
 {
     _Parent   = parent;
     rcwHandle = GCHandle.Alloc(this, GCHandleType.Normal);
 }
 internal ControlChangeNotify(Part parent)
 {
     _Parent = parent;
     rcwHandle = GCHandle.Alloc(this, GCHandleType.Normal);
 }