private void btnRemoveAttribute_Click(object sender, EventArgs e) { if (lstvTileAttributes.SelectedItems.Count == 0) { return; } TileHandler.RemoveAttributeFromSelectedTiles((TileAttributes)lstvTileAttributes.SelectedItems[0].Tag); ReloadSelectedTilesPanel(); }