private void EditButtonPressed(object sender, EventArgs e) { TileEditor form = new TileEditor(textureList.SelectedItems[0] as TextureItem); form.ShowDialog(); }