private void ctxitemSelectFromAttribute_Click(object sender, EventArgs e) { if (lstvTileAttributes.SelectedItems.Count == 0) { return; } TileHandler.SelectFromAttribute((TileAttributes)lstvTileAttributes.SelectedItems[0].Tag); ReloadSelectedTilesPanel(); pctbMain.Invalidate(); pctbTileTest.Invalidate(); pctbSelectedTile.Invalidate(); }