예제 #1
0
    /// <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);
            }
        }
    }
예제 #2
0
 private void runAction_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     ActionClick?.Invoke(this, EventArgs.Empty);
 }
예제 #3
0
 private void Action_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     ActionClick?.Invoke(this, new EventArgs());
 }
예제 #4
0
 public void Click()
 {
     Seri.Log.Here().Debug(MenuName + " Click");
     ActionClick?.Invoke();
 }