private void butDeleteTexture_Click(object sender, EventArgs e) { LevelTexture texture = comboCurrentTexture.SelectedItem as LevelTexture; if (texture != null) { EditorActions.RemoveTexture(this, texture); } }