/// <summary>
        /// listener methods
        /// </summary>
        /// <summary>
        /// Removes a  RtfDestinationListener  from the appropriate  RtfDestination .
        /// the RtfCtrlWordListener that has to be removed.
        /// </summary>
        /// <param name="destination">the destination string for the listener</param>
        /// <param name="listener"></param>
        public static bool RemoveListener(string destination, IRtfDestinationListener listener)
        {
            RtfDestination dest = GetDestination(destination);

            if (dest != null)
            {
                return(dest.RemoveListener(listener));
            }
            return(false);
        }
Example #2
0
        /// <summary>
        /// Adds a  RtfDestinationListener  to the appropriate  RtfDestination .
        /// the new RtfDestinationListener.
        /// </summary>
        /// <param name="destination">the destination string for the listener</param>
        /// <param name="listener"></param>
        public static bool AddListener(string destination, IRtfDestinationListener listener)
        {
            var dest = GetDestination(destination);

            if (dest != null)
            {
                return(dest.AddListener(listener));
            }
            return(false);
        }
Example #3
0
        /**
         * Removes a <CODE>RtfDestinationListener</CODE> from the <CODE>RtfDestinationMgr</CODE>.
         *
         * @param listener
         *            the RtfCtrlWordListener that has to be removed.
         */
        public bool RemoveListener(IRtfDestinationListener listener)
        {
            int i = listeners.IndexOf(listener);

            if (i >= 0)
            {
                listeners.RemoveAt(i);
                return(true);
            }
            return(false);
        }
 /**
 * Removes a <CODE>RtfDestinationListener</CODE> from the appropriate <CODE>RtfDestination</CODE>.
 *
 * @param destination the destination string for the listener
 * @param listener
 *            the RtfCtrlWordListener that has to be removed.
 */
 public static bool RemoveListener(String destination, IRtfDestinationListener listener) {
     RtfDestination dest = GetDestination(destination);
     if (dest != null) {
         return dest.RemoveListener(listener);
     }
     return false;
 }
 /**
 * Removes a <CODE>RtfDestinationListener</CODE> from the <CODE>RtfDestinationMgr</CODE>.
 *
 * @param listener
 *            the RtfCtrlWordListener that has to be removed.
 */
 public bool RemoveListener(IRtfDestinationListener listener) {
     int i = listeners.IndexOf(listener);
     if (i >= 0) {
         listeners.RemoveAt(i);
         return true;
     }
     return false;
 }
        // listener methods

        /**
        * Adds a <CODE>RtfDestinationListener</CODE> to the <CODE>RtfDestinationMgr</CODE>.
        *
        * @param listener
        *            the new RtfDestinationListener.
        */
        public bool AddListener(IRtfDestinationListener listener) {
            listeners.Add(listener);
            return true;
        }
Example #7
0
        // listener methods

        /**
         * Adds a <CODE>RtfDestinationListener</CODE> to the <CODE>RtfDestinationMgr</CODE>.
         *
         * @param listener
         *            the new RtfDestinationListener.
         */
        public bool AddListener(IRtfDestinationListener listener)
        {
            listeners.Add(listener);
            return(true);
        }