Beispiel #1
0
        /// <summary>
        /// Break engage.
        /// </summary>
        /// <param name="engage">Engage mechanism.</param>
        public void BreakEngage(IEngagedMechanism engage)
        {
            var mechanism = engage as Mechanism;

            if (engages.Contains(mechanism))
            {
                engages.Remove(mechanism);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Build engage for mechanism.
        /// </summary>
        /// <param name="engage">Engage mechanism.</param>
        public void BuildEngage(IEngagedMechanism engage)
        {
            var Mechanism = engage as Mechanism;

            if (Mechanism && !engages.Contains(Mechanism))
            {
                engages.Add(Mechanism);
            }
        }