Grafiti.GestureRecognizer.AppendEvent C# (CSharp) Méthode

AppendEvent() protected méthode

Use this method to send events. If the GR is not armed (e.g. it's in competition with other GRs), events will be scheduled in a queue and raised as soon as the GR will be armed. If the GR is already armed, events are raised immediately.
protected AppendEvent ( GestureEventHandler ev, GestureEventArgs args ) : void
ev GestureEventHandler The event
args GestureEventArgs The event's arguments
Résultat void
        protected void AppendEvent(GestureEventHandler ev, GestureEventArgs args)
        {
            if (ev != null)
            {
                if (m_armed)
                    ev(this, args);
                else
                {
                    m_bufferedHandlers.Add((GestureEventHandler)ev.Clone());
                    m_bufferedArgs.Add(args);
                }
            }
        }