void IMycoSwipeGestureRecognizerController.SendSwipeLeft(MycoView view) { if (SwipeLeftCommand != null) { SwipeLeftCommand.Execute(SwipeLeftCommandParameter); } if (SwipeLeft != null) { SwipeLeft(view, new EventArgs()); } }
public void OnSwipeLeft() { if (SwipeLeftCommand != null && SwipeLeftCommand.CanExecute(null)) { SwipeLeftCommand.Execute(null); } EventHandler handler = SwipeLeft; if (handler != null) { handler(this, new EventArgs()); } }
public void SwipeLeftEvent() { var para = SwipeLeftCommandParameter ?? CommandParameter; if (null != SwipeLeftCommand) { if (SwipeLeftCommand.CanExecute(para)) { SwipeLeftCommand.Execute(para); } } else { SwipeLeft?.Invoke(this, para); } }