ARCed.Database.Actors.ActorParametersForm.ActorParametersForm C# (CSharp) Method

ActorParametersForm() public method

Default constructor
public ActorParametersForm ( Actor actor, int index ) : System
actor RPG.Actor Actor to associate with this control.
index int Index of the parameter to activate on the control.
return System
        public ActorParametersForm(Actor actor, int index)
        {
            this.InitializeComponent();
            this.numericValue.Maximum = Project.Settings.GetMaxValue(index);
            this._actor = actor;
            this.numericLevel.Minimum = this._actor.initial_level;
            this.numericLevel.Maximum = this._actor.final_level;
            TabText = String.Format("Parameters: {0}", this._actor.name);
            this.GenerateCharts();
            Windows.ChartSettingsForm.SetCharts(ref this._charts);
            this.tabControlParameters.SelectedIndex = index;
        }