public void Update() { if (this.FromUnit == null || this.ToUnit == null) { return; } float toAnchorValue = this.FromValue * this.FromUnit.ToAnchor; if (this.FromUnit.UnitSystem != this.ToUnit.UnitSystem) { var ratio = Anchors.Find(x => x.UnitSystem == this.FromUnit.UnitSystem).Ratio; toAnchorValue = toAnchorValue * ratio; } float fromAnchorValue = toAnchorValue / this.ToUnit.ToAnchor; this.ToValue = fromAnchorValue; }