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