private void TileConteiner_Click(object sender, RoutedEventArgs e) { if (TileClick != null) { TileClick.Invoke(sender, e); } }
private void NewVideoBox_Click(object sender, RoutedEventArgs e) { Tile videoBox = sender as Tile; if (TileClick != null) { TileClick.Invoke(videoBox.Tag, new EventArgs()); } }
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); } }
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)); }
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); }
protected virtual void OnTileClick(TileEventArgs e) { TileClick?.Invoke(this, e); }
private void OnMouseClick(object sender, MouseEventArgs args) { TileClick?.Invoke(this, Viewport.TranslateMouse(args.X, args.Y)); }