예제 #1
0
 /// <summary>
 /// Excutes the action assoicated with the gesture
 /// </summary>
 /// <param name="result">The final <see cref="GestureResult"/></param>
 /// <param name="annoyingbaseobjectthing">The Gesture Paramater</param>
 public void ExecuteGesture(GestureResult result, object annoyingbaseobjectthing)
 {
     if (execute != null)
     {
         execute(result, annoyingbaseobjectthing);
     }
 }
예제 #2
0
 /// <summary>
 /// Excutes the asyncronous action assoicated with the gesture
 /// </summary>
 /// <param name="result">The final <see cref="GestureResult"/></param>
 /// <param name="param">The Gesture Paramater</param>
 public async void ExecuteGesture(GestureResult result, object param)
 {
     if (asyncExecute != null)
     {
         await Execute(result, param);
     }
 }
예제 #3
0
 /// <summary>
 /// Tests to see if a gesture's action can execute
 /// </summary>
 /// <param name="result">The final <see cref="GestureResult"/></param>
 /// <param name="annoyingbaseobjectthing">The Gesture Paramater</param>
 /// <returns>true if the action can execute,false othewise</returns>
 public bool CanExecuteGesture(GestureResult result, object annoyingbaseobjectthing)
 {
     return(canexecute == null || canexecute(result, annoyingbaseobjectthing));
 }
예제 #4
0
 /// <summary>
 /// Virtual aync funciton that the user can override to provide
 /// any custom functionality required.
 /// </summary>
 /// <param name="gesture"><see cref="GestureResult"/></param>
 /// <param name="annoyingbaseobjectthing"></param>
 /// <returns></returns>
 protected virtual async Task Execute(GestureResult gesture, object annoyingbaseobjectthing)
 {
     await asyncExecute(gesture, annoyingbaseobjectthing);
 }