Exemple #1
0
    /// <summary>
    /// Unregisters listener.
    /// </summary>
    /// <param name='listener'>
    /// listener
    /// </param>
    public void unregisterListener(WidgetEventListener listener)
    {
        HashSet <WidgetEventListener> tmplisteners = new HashSet <WidgetEventListener>(listeners);

        tmplisteners.Remove(listener);
        listeners = tmplisteners;
    }
 /// <summary>
 /// Unregisters listener.
 /// </summary>
 /// <param name='listener'>
 /// listener
 /// </param>
 public void unregisterListener(WidgetEventListener listener)
 {
     HashSet<WidgetEventListener> tmplisteners = new HashSet<WidgetEventListener>(listeners);
     tmplisteners.Remove(listener);
     listeners = tmplisteners;
 }