public void AssignEquipmentToDivers(CompositeEquipment allEquipment, Dive dive) { foreach (Diver diver in diversList) { allEquipment.EquipDiver(diver, dive); } allEquipment.FindBasicEquipmentForDive(basicEquipment, dive); }
/// <summary> /// Assign equipment to divers and update equipment status /// </summary> /// <param name="dive">Dive object</param> public void AssignEquipmentToDivers(Dive dive) { foreach (Diver diver in dive.Divers) { allEquipment.EquipDiver(diver, dive); diver.UpdateEquipmentStatus(dive); } }