protected override void SetValue(long entityId, TScript script, TValue value, bool send) { traceLog("entered"); TValue currentValue = _getter(script); if (!EqualityComparer.Equals(value, currentValue)) { traceLog("value changed from " + currentValue + " to " + value); _setter(script, value); if (send) { SendValue(entityId, value); } _control?.UpdateVisual(); } else { traceLog("equals previous value"); } }
private void UpdateVisual() { _control?.UpdateVisual(); }