// Called when a token is added or removed from the collection
        protected void onTokenAddedRemoved(ref TokenData token)
        {
            TokenAddedRemovedEventHandler handler = TokenAddedRemovedEvent;

            if (handler != null)
            {
                TokenAddedRemovedEventArgs args = new TokenAddedRemovedEventArgs(ref token);
                handler(this, args);
            }
        }
Ejemplo n.º 2
0
 // This event is automatically called whenever a token is added or removed from the token library
 private void TokenLibrary_TokenAddedRemovedEvent(object sender, TokenAddedRemovedEventArgs a)
 {
     refreshTokenLibList();
 }