Пример #1
0
        public HardwareInventory Add(HardwareInventory newHardwareInventory)
        {
            hardwareInventories.Add(newHardwareInventory);

            newHardwareInventory.HDId = Guid.NewGuid().ToString();

            return(newHardwareInventory);
        }
Пример #2
0
 void Awake()
 {
     a = this;
     for (int i = 0; i < 14; i++)
     {
         a.hardwareInventoryIndexRef[i] = -1;
     }
 }
Пример #3
0
 void Awake()
 {
     a = this;
     for (int i = 0; i < 14; i++)
     {
         a.hardwareInventoryIndexRef[i] = -1;
         a.hardwareVersionSetting [i]   = 1;
     }
 }
Пример #4
0
        public HardwareInventory Update(HardwareInventory updatedHardwareInventory)
        {
            var hardwareInventory = hardwareInventories.SingleOrDefault(h => h.HDId == updatedHardwareInventory.HDId);

            if (hardwareInventory != null)
            {
                hardwareInventory.Location = updatedHardwareInventory.Location;
            }
            return(hardwareInventory);
        }
Пример #5
0
 void Awake()
 {
     a = this;
 }