/// <summary> /// Method that happens when the user clicks the mouse in this slot. /// </summary> /// <param name="eventData">Information about the click</param> public void OnPointerClick(PointerEventData eventData) { if (eventData != null && eventData.button == PointerEventData.InputButton.Left) { if (Info != null) { // Contains information about which item is in this slot SlotClick?.Invoke(Info); } } if (eventData != null && eventData.button == PointerEventData.InputButton.Right) { if (Info != null) { // Contains information about which item is in this slot ActionClick?.Invoke(Info); } } }
private void runAction_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e) { ActionClick?.Invoke(this, EventArgs.Empty); }
private void Action_Click(object sender, System.Windows.RoutedEventArgs e) { ActionClick?.Invoke(this, new EventArgs()); }
public void Click() { Seri.Log.Here().Debug(MenuName + " Click"); ActionClick?.Invoke(); }