Exemplo n.º 1
0
        /// <summary>
        /// Removes the switch from the actuator. The swtich is removed from the
        /// actuators settings file and the file saved.
        /// </summary>
        /// <param name="actuator"></param>
        /// <param name="switchName"></param>
        /// <returns></returns>
        public bool UnregisterSwitch(IActuator actuator, String switchName)
        {
            if (_actuators.Find(actuator.GetType()) == null)
            {
                return(false);
            }

            return(_actuators.RemoveSwitch(actuator, switchName));
        }