internal EquipmentGroupByMasterID(EquipmentInfo rpInfo, EquipmentTypeViewModel rpType, IEnumerable<Equipment> rpEquipment)
        {
            Info = rpInfo;
            Type = rpType;

            foreach (var rGroup in rpEquipment.GroupBy(r => new EquipmentGroupingKey(r.Level, r.Proficiency)))
                r_LevelMap.Add(rGroup.Key, new EquipmentGroupByLevel(this, rGroup.Key, rGroup));
            Levels = r_LevelMap.OrderBy(r => r.Key.Level).ThenBy(r => r.Key.Proficiency).Select(r => r.Value).ToArray().AsReadOnly();
        }
예제 #2
0
        void SelectThisTypeOnly(EquipmentTypeViewModel rpType)
        {
            foreach (var rType in Types)
            {
                rType.SetIsSelectedWithoutCallback(rType == rpType);
            }

            UpdateSelection();
        }
        internal EquipmentGroupByMasterID(EquipmentInfo rpInfo, EquipmentTypeViewModel rpType, IEnumerable <Equipment> rpEquipment)
        {
            Info = rpInfo;
            Type = rpType;

            foreach (var rGroup in rpEquipment.GroupBy(r => new EquipmentGroupingKey(r.Level, r.Proficiency)))
            {
                r_LevelMap.Add(rGroup.Key, new EquipmentGroupByLevel(this, rGroup.Key, rGroup));
            }
            Levels = r_LevelMap.OrderBy(r => r.Key.Level).ThenBy(r => r.Key.Proficiency).Select(r => r.Value).ToArray().AsReadOnly();
        }
        void SelectThisTypeOnly(EquipmentTypeViewModel rpType)
        {
            foreach (var rType in Types)
                rType.SetIsSelectedWithoutCallback(rType == rpType);

            UpdateSelection();
        }