예제 #1
0
 private void TileConteiner_Click(object sender, RoutedEventArgs e)
 {
     if (TileClick != null)
     {
         TileClick.Invoke(sender, e);
     }
 }
예제 #2
0
        private void NewVideoBox_Click(object sender, RoutedEventArgs e)
        {
            Tile videoBox = sender as Tile;

            if (TileClick != null)
            {
                TileClick.Invoke(videoBox.Tag, new EventArgs());
            }
        }
예제 #3
0
        private void Tile_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Tile tile = Tiles.Find(t => t.Shape.Equals((Shape)sender));

            if (tile != null)
            {
                TileClick?.Invoke(tile.Position);
            }
        }
예제 #4
0
        protected override void OnMouseDown(MouseEventArgs e)
        {
            selectedTileCoords = new Point((e.X / (zoomedTileSize.Width + zoomedTileGap)), (e.Y / (zoomedTileSize.Height + zoomedTileGap)));
            selectedTileRect   = new Rectangle(
                selectedTileCoords.X * (zoomedTileSize.Width + zoomedTileGap), selectedTileCoords.Y * (zoomedTileSize.Height + zoomedTileGap),
                zoomedTileSize.Width - 1, zoomedTileSize.Height - 1);

            Select();

            TileClick?.Invoke(this, new TileClickEventArgs(e.Button, selectedTileCoords));
        }
예제 #5
0
 private void NewVideoBox_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         Tile videoBox = sender as Tile;
         if (TileClick != null)
         {
             TileClick.Invoke(videoBox.Tag, new EventArgs());
         }
     }
     catch (Exception ex)
     {
         App.SendException(ex);
     }
 }
 private void PnlData_Click(object sender, MouseEventArgs e)
 {
     TileClick?.Invoke(this, new MouseEventArgs(e.Button, e.Clicks, e.X + gameTile.Width, e.Y, e.Delta));
 }
 private void FlpMain_MouseClick(object sender, MouseEventArgs e)
 {
     TileClick?.Invoke(this, e);
 }
 private void GameTile_TileClick(object sender, MouseEventArgs e)
 {
     TileClick?.Invoke(this, e);
 }
예제 #9
0
 protected virtual void OnTileClick(TileEventArgs e)
 {
     TileClick?.Invoke(this, e);
 }
예제 #10
0
 private void OnMouseClick(object sender, MouseEventArgs args)
 {
     TileClick?.Invoke(this, Viewport.TranslateMouse(args.X, args.Y));
 }