Пример #1
0
 internal void UpdateEquipments(RawEquipment[] rpEquipments)
 {
     if (Equipments.UpdateRawData(rpEquipments, r => new Equipment(r), (rpData, rpRawData) => rpData.Update(rpRawData)))
         OnPropertyChanged(nameof(Equipments));
 }
Пример #2
0
        internal void AddEquipment(RawEquipment[] rpRawData)
        {
            if (rpRawData == null)
                return;

            foreach (var rRawData in rpRawData)
                Equipment.Add(new Equipment(rRawData));
            OnPropertyChanged(nameof(Equipment));
        }