public void InvokeContextPointerClick(Vector2 pointerPosition) { if (ContextClick != null) { ContextClick.Invoke(this, new PointerGraphicalElementEventArgs(pointerPosition)); } }
/// <summary> /// Raises the ContextClick event. /// </summary> /// <param name="e">A MouseEventArgs containing the event data.</param> protected virtual void OnContextClick(MouseEventArgs e) { ContextClick?.Invoke(this, e); }
private void OnContextClick(object sender, MouseEventArgs e) { ContextClick?.Invoke(this, e); }
public BoardNeuron() { // we'll need a creation dialog to init? OnContextClick += new ContextClick(BoardNeuron_OnContextClick); }