Example #1
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);
     }
 }
Example #2
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);
     }
 }
Example #3
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 as T);
 }
Example #4
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 as T));
 }