예제 #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);
                }
            }
        }