Ejemplo n.º 1
0
		/// <summary>
		/// Removes the listener from the collection of listeners who will be notified when a
		/// <seealso cref="Client"/> property changed. </summary>
		/// <param name="listener"> The listener which should no longer be notified. </param>
		public static void removeClientChangeListener(IClientChangeListener listener)
		{
			lock (sLock)
			{
				sClientListeners.Remove(listener);
			}
		}
Ejemplo n.º 2
0
		/// <summary>
		/// Adds the listener to the collection of listeners who will be notified when a <seealso cref="Client"/>
		/// property changed, by sending it one of the messages defined in the
		/// <seealso cref="IClientChangeListener"/> interface. </summary>
		/// <param name="listener"> The listener which should be notified. </param>
		public static void addClientChangeListener(IClientChangeListener listener)
		{
			lock (sLock)
			{
				if (sClientListeners.Contains(listener) == false)
				{
					sClientListeners.Add(listener);
				}
			}
		}