string AddBOMItemInt(string package, string device, string value, string refdes, BOMNumberSet set, string SourceBoard, double x, double y, double angle, BoardSide side = BoardSide.Top) { string ID = GetID(package, device, refdes); if (DeviceTree.ContainsKey(ID) == false) { DeviceTree[ID] = new Dictionary <string, BOMEntry>(); } if (DeviceTree[ID].ContainsKey(value) == false) { DeviceTree[ID][value] = new BOMEntry() { Name = device, Value = value, PackageName = package } } ; BOMEntry BE = DeviceTree[ID][value]; return(BE.AddRef(refdes, SourceBoard, set, x, y, angle, side)); }