示例#1
0
        private void EmptySlot_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e)
        {
            FrameworkElement b = (FrameworkElement)sender;

            EmptySlotTapped evnt = new EmptySlotTapped();

            evnt.X = (int)b.GetValue(Grid.ColumnProperty);
            evnt.Y = (int)b.GetValue(Grid.RowProperty) - 1;
            OnEmpty(evnt);
        }
示例#2
0
 protected virtual void OnEmpty(EmptySlotTapped e)
 {
     OnEmptySlotTapped?.Invoke(this, e);
 }