public HardwareInventory Add(HardwareInventory newHardwareInventory) { hardwareInventories.Add(newHardwareInventory); newHardwareInventory.HDId = Guid.NewGuid().ToString(); return(newHardwareInventory); }
void Awake() { a = this; for (int i = 0; i < 14; i++) { a.hardwareInventoryIndexRef[i] = -1; } }
void Awake() { a = this; for (int i = 0; i < 14; i++) { a.hardwareInventoryIndexRef[i] = -1; a.hardwareVersionSetting [i] = 1; } }
public HardwareInventory Update(HardwareInventory updatedHardwareInventory) { var hardwareInventory = hardwareInventories.SingleOrDefault(h => h.HDId == updatedHardwareInventory.HDId); if (hardwareInventory != null) { hardwareInventory.Location = updatedHardwareInventory.Location; } return(hardwareInventory); }
void Awake() { a = this; }