private void RefreshParameters() { foreach (ParamBox ctrl in this.flowPanelParameters.Controls) { var property = typeof(State).GetProperty(ctrl.RpgAttribute); if (property != null) ctrl.Value = (int)property.GetValue(this._state, null); } }