Esempio n. 1
0
        protected virtual void OnSelectedIndexChanged(object sender, int newIndex)
        {
            PositionChangedEventHandler handler = (PositionChangedEventHandler)this.Events[SelectedIndexChangedEventKey];

            if (handler != null)
            {
                handler(sender, new PositionChangedEventArgs(newIndex));
            }
        }
        protected virtual void OnPositionChanged(PositionChangedEventArgs e)
        {
            PositionChangedEventHandler handler = PositionChanged;

            handler?.Invoke(this, e);
        }
Esempio n. 3
0
 public void SetKinectPositionChangedHandler(JointID id, PositionChangedEventHandler handler)
 {
     handlerClientPositionChanged[(int)id] = handler;
 }