Example #1
0
        protected void GestureManager_GestureDeleted(object sender, GestureEventArgs e)
        {
            // Remove any global actions that use this gesture
            GetGlobalApplication().RemoveAllActions(a => a.GestureName == e.GestureName);

            // Remove any user application actions that use this gesture
            foreach (UserApplication uApp in Applications.OfType<UserApplication>())
                uApp.RemoveAllActions(a => a.GestureName == e.GestureName);
        }
Example #2
0
 protected virtual void OnGestureDeleted(GestureEventArgs e)
 {
     if (GestureDeleted != null) GestureDeleted(this, e);
 }