private void parameterComboBox1_SelectedIndexChanged(object sender, EventArgs e) { //get the parameter type String text = parameterComboBox1.Text; uint paramName = GodzUtil.GetHashCode(text); MaterialParameter mp = mMaterial.getParameter(paramName); if (mp != null) { parameterTextBox.Text = ""; //select the type MaterialParameterType ty = mp.getType(); if (ty == MaterialParameterType.MaterialParameter_Texture) { parameterTypeComboBox.SelectedIndex = 0; } else { parameterTypeComboBox.SelectedIndex = 1; //set float value.... String text2 = ""; uint num = mp.getNumFloats(); for (uint i = 0; i < num; i++) { text2 += mp.getFloat(i).ToString(); if (i < num - 1) { text2 += ","; } } parameterTextBox.Text = text2; } } }