internal void Activate(WeaponTypeViewModel weaponTypeToActivate) { foreach (WeaponTypeViewModel weaponType in WeaponTypes) { weaponType.IsActive = weaponType == weaponTypeToActivate; } }
public void SetParent(WeaponTypeViewModel parent) { Parent = parent; if (Branches != null && Branches.Count > 0) { foreach (WeaponViewModel child in Branches) { child.SetParent(parent); } } }