public float GetNormalizedValue(IHaveIntValue objWithIntValue)
        {
            if (objWithIntValue.GetValue() <= 0)
            {
                return(0f);
            }

            return((float)objWithIntValue.GetValue() / (float)objWithIntValue.GetMaxValue());
        }
 public void Setup(IHaveIntValue objWithIntValue)
 {
     _valueToDisplay = objWithIntValue;
     objWithIntValue.OnValueChange += () => { UpdateView(); };
 }