public void AssignOutputParameterContainer(string ParamName, out XMLParameter ParamOut, object Value = null) { XMLParameter _param; if (ParamName.Substring(0, 1) != "@") { ParamName = '@' + ParamName; } if (Parameters[ParamName] != null) { _param = _parameters[ParamName]; } else { _param = new XMLParameter() { ParameterName = ParamName }; Parameters.Add(_param); } if (Value != null) { AddParameterValue(ParamName, Value); } ParamOut = _param; //ObjectParameters.Add(new ObjectParameter() {Container=Container, Parameter=_param }); }
public override void AddControlParameter(string pParamName, object ParamControl) { if (pParamName.Substring(0, 1) != "@") { pParamName = '@' + pParamName; } XMLParameter lParam; if (Parameters[pParamName] != null) { lParam = _parameters[pParamName]; } else { lParam = new XMLParameter() { ParameterName = pParamName }; Parameters.Add(lParam); } ControlParameters.Add(new ControlParameter() { Parameter = lParam, LinkedControl = ParamControl }); }
public override void AddControlParameter(string ParamName, object ParamControl) { { XMLParameter lParam = new XMLParameter() { ParameterName = ParamName }; ControlParameters.Add(new ControlParameter() { Parameter = lParam, LinkedControl = ParamControl }); Parameters.Add(lParam); if (AutoUpdate && ParamControl is IsValuable) { ((IsValuable)ParamControl).TextChanged += RSFrame_TextChanged; } } }