예제 #1
0
        protected virtual void OnHitChangePoints(HitChangePointsEventArgs e)
        {
            EventHandler <HitChangePointsEventArgs> handler = HitChangePointsEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #2
0
        protected override void OnStylusUp(RawStylusInput rawStylusInput)
        {
            base.OnStylusUp(rawStylusInput);
            //raise the event and pass the collection
            HitChangePointsEventArgs args = new HitChangePointsEventArgs();

            args.hitChangedPoints = hitChangedPoints;
            OnHitChangePoints(args);
            //reset the collection
            hitChangedPoints = new List <Point>();
        }