private ValueContent ApplyType()
{
ValueContent type;
if (this.radioButtonValueBoolean.Checked)
type = ValueContent.Boolean;
else if (this.radioButtonValueMap.Checked)
type = ValueContent.Map;
else if (this.radioButtonValueNumber.Checked)
type = ValueContent.Number;
else if (this.radioButtonValueString.Checked)
type = ValueContent.String;
else
type = ValueContent.Void;
this.checkBoxValueBoolean.Enabled = (type == ValueContent.Boolean);
this.textBoxValueNumber.Enabled = (type == ValueContent.Number);
this.textBoxValueString.Enabled = (type == ValueContent.String);
return type;
}