public override void Evaluate(Dictionary <MoneyColumnMetadataJsModel, CalculatedResult> dependencies) { if (Value == null) { _baseExpression.Evaluate(dependencies); Value = _baseExpression.Value; } }
public void EvalExpression(IList <CalculatedResult> dependencies) { if (_expression != null && !_evaluated) { _evaluated = true; _expression.Evaluate(dependencies); Value = _expression.Value; FailedToResolve = _expression.FailedToParse; Ccy = _expression.Ccy; Tooltip = _expression.ToString(); } }
public void EvalExpression() { if (_expression != null && !_evaluated) { _evaluated = true; _expression.Evaluate(_deps); _value = _expression.Value.Value; _failedToResolve = _expression.Value.FailedToResolve; _ccy = _expression.Value.Ccy; _adjustment = _expression.Value.Adjustment; _tooltip += _expression + "\r\n => " + Value + " + " + Adjustment + " => " + (Value + Adjustment); if (FailedToResolve.Any()) { _tooltip += "\r\n\r\nНет данных по: " + String.Join(",\r\n", FailedToResolve); } } }