private void details(StringBuilder sb, ApplicationComponent cmp, string param, string value) { if (param.IsNotNullOrWhiteSpace()) { sb.AppendLine("<f color=gray>Trying to set parameter <f color=yellow>'{0}'<f color=gray> to value <f color=cyan>'{1}'".Args(param, value ?? "<null>")); if (!ExternalParameterAttribute.SetParameter(cmp.App, cmp, param, value)) { sb.AppendLine("<f color=red>Parameter <f color=yellow>'{0}'<f color=red> set did NOT SUCCEED".Args(param)); return; } sb.AppendLine("<f color=green>Parameter <f color=yellow>'{0}'<f color=green> set SUCCEEDED".Args(param)); sb.AppendLine(); } dumpDetails(sb, cmp, 0); }
/// <summary> /// Sets external parameter value returning true if parameter was found and set /// </summary> public bool ExternalSetParameter(string name, object value, params string[] groups) { if (name.StartsWith(TBL_PARAM_PREFIX) && name.Length > TBL_PARAM_PREFIX.Length) { var tname = name.Substring(TBL_PARAM_PREFIX.Length); var tbl = m_Tables[tname]; if (tbl == null) { return(false); } tbl.Options.AsExternalParameter = value; return(true); } else { return(ExternalParameterAttribute.SetParameter(this, name, value, groups)); } }
/// <summary> /// Sets external parameter value returning true if parameter was found and set /// </summary> public bool ExternalSetParameter(string name, object value, params string[] groups) { return(ExternalParameterAttribute.SetParameter(this, name, value, groups)); }
protected virtual bool DoExternalSetParameter(string name, object value, params string[] groups) { return(ExternalParameterAttribute.SetParameter(this, name, value, groups)); }
public bool ExternalSetParameter(string name, object value, params string[] groups) => ExternalParameterAttribute.SetParameter(App, this, name, value, groups);
/// <summary> /// Sets external parameter value returning true if parameter was found and set /// </summary> public virtual bool ExternalSetParameter(string name, object value, params string[] groups) { return ExternalParameterAttribute.SetParameter(App, this, name, value, groups); }
protected virtual bool DoExternalSetParameter(string name, object value, params string[] groups) => ExternalParameterAttribute.SetParameter(App, this, name, value, groups);