示例#1
0
 internal void Activate(WeaponTypeViewModel weaponTypeToActivate)
 {
     foreach (WeaponTypeViewModel weaponType in WeaponTypes)
     {
         weaponType.IsActive = weaponType == weaponTypeToActivate;
     }
 }
示例#2
0
        public void SetParent(WeaponTypeViewModel parent)
        {
            Parent = parent;

            if (Branches != null && Branches.Count > 0)
            {
                foreach (WeaponViewModel child in Branches)
                {
                    child.SetParent(parent);
                }
            }
        }