public ParamGenerateCurveDialog(ref Actor actor, int paramIndex)
{
this.InitializeComponent();
var max = Project.Settings.GetMaxValue(paramIndex);
this.numericInitial.Maximum = max;
this.numericFinal.Maximum = max;
this.numericFinal.Value = actor.parameters[paramIndex, actor.final_level];
this.numericInitial.Value = actor.parameters[paramIndex, actor.initial_level];
}