private void comboInterpType_SelectionChangeCommitted(object sender, EventArgs e) { switch (comboInterpType.SelectedText) { case "Linear Interpolation": interpType = PerlinNoise.InterpolationType.LinearInterp; break; case "Cosine Interpolation": interpType = PerlinNoise.InterpolationType.CosineInterp; break; case "Cubic Interpolation": interpType = PerlinNoise.InterpolationType.CubicInterp; break; default: //MessageBox.Show("Test"); break; } }