Example #1
0
        private void RaiseTokenCancelledEvent(InternalTokenCancelledEventArgs e)
        {
            EventHandler <InternalTokenCancelledEventArgs> handler;

            lock (TokenCallBackLock)
            {
                handler = TokenCancelledEvent;
            }

            if (handler != null)
            {
                handler(this, e);
            }
        }
        private void OnTokenCancelled(object sender, InternalTokenCancelledEventArgs e)
        {
            //clusters[e.TokenHashId].SetState(ClusterState.Invalid);

            //Add these to FingerTouches
            //Cluster c = clusters[e.TokenHashId];
            //foreach (KeyValuePair<int, TouchInput> record in c.Points)
            //{
            //    InputManager.AddFingerTouch(record.Value);
            //}
        }
        private void RaiseTokenCancelledEvent(InternalTokenCancelledEventArgs e)
        {
            EventHandler<InternalTokenCancelledEventArgs> handler;
            lock (TokenCallBackLock)
            {
                handler = TokenCancelledEvent;
            }

            if (handler != null)
            {
                handler(this, e);
            }
        }