示例#1
0
 public ElemKey(Schematic.Element elem)
 {
     if (elem == null)
     {
         throw new ArgumentNullException("elem");
     }
     this.type   = elem.type;
     this.name   = elem.name;
     this.nodeId = elem.nodeId;
 }
示例#2
0
 public signals.ICircuitElement Entry(Schematic.Element elem)
 {
     if (elem == null)
     {
         throw new ArgumentNullException("elem");
     }
     if (elem.circuitId == 0)
     {
         throw new ArgumentException("Element has no circuit ID", "elem");
     }
     return(Entry(elem.circuitId));
 }