public AttackPlanFromControl AddAttacker(AttackPlanFrom attackFrom)
        {
            var ctl = new AttackPlanFromControl(_unitImageList, attackFrom);

            DistanceContainer.Controls.Add(ctl);
            return(ctl);
        }
        public void RemoveAttacker(AttackPlanFrom attacker)
        {
            AttackPlanFromControl attackerControl = GetControlForAttackPlan(attacker);

            if (attackerControl != null)
            {
                DistanceContainer.Controls.Remove(attackerControl);
            }
        }
        /// <summary>
        /// Visual indication of currently selected attacker in the plan
        /// </summary>
        public void SetActiveAttacker(AttackPlanFrom activeAttacker)
        {
            if (_activeAttacker != null)
            {
                _activeAttacker.BackColor = SystemColors.Control;
            }

            AttackPlanFromControl attackerControl = GetControlForAttackPlan(activeAttacker);
            if (attackerControl != null)
            {
                attackerControl.BackColor = SystemColors.ControlDark;
                _activeAttacker = attackerControl;
                DistanceContainer.ScrollControlIntoView(_activeAttacker);
            }
        }
        /// <summary>
        /// Visual indication of currently selected attacker in the plan
        /// </summary>
        public void SetActiveAttacker(AttackPlanFrom activeAttacker)
        {
            if (_activeAttacker != null)
            {
                _activeAttacker.BackColor = SystemColors.Control;
            }

            AttackPlanFromControl attackerControl = GetControlForAttackPlan(activeAttacker);

            if (attackerControl != null)
            {
                attackerControl.BackColor = SystemColors.ControlDark;
                _activeAttacker           = attackerControl;
                DistanceContainer.ScrollControlIntoView(_activeAttacker);
            }
        }
 public AttackPlanFromControl AddAttacker(AttackPlanFrom attackFrom)
 {
     var ctl = new AttackPlanFromControl(_unitImageList, attackFrom);
     DistanceContainer.Controls.Add(ctl);
     return ctl;
 }