public virtual void AddCurrentValue() { var newName = Palette.AddValue(GetCurrentValue()); if (!string.IsNullOrEmpty(newName)) { nameSelection.value = newName; nameSelection.requestAdd = false; } if (!isActiveAndEnabled) { return; } UpdateValueIfEnabled(); }