public void OnSlotPressed(object sender, PointerRoutedEventArgs e)
        {
            Grid sender_grid = sender  as Grid;

            Model.TrickerStarNodeSolt       slot   = sender_grid.DataContext as Model.TrickerStarNodeSolt;
            Model.TrickerStarNodeSoltDetail detail = new Model.TrickerStarNodeSoltDetail()
            {
                SlotType  = slot.SlotType,
                NodeName  = m_NodeName,
                SlotName  = slot.SlotName,
                SlotIndex = slot.SlotIndex,
                SlotSide  = slot.SlotSide,
            };
            if (OnSlotClicked != null)
            {
                OnSlotClicked.Invoke(detail);
            }
        }
 public void OnPointerDown(PointerEventData eventData)
 {
     OnSlotClicked?.Invoke(this);
 }
Пример #3
0
 public void SlotClicked(Slot.State state, long id)
 {
     OnSlotClicked?.Invoke(state, id);
 }