public synchronized void setMax(int max) {super.setMax(max);if ((mKeyProgressIncrement == 0) || (getMax() / mKeyProgressIncrement > 20)) {setKeyProgressIncrement(Math.max(1, Math.round((float) getMax() / 20)));}}
public override void setMax(int max){lock (this){base.setMax(max);if ((mKeyProgressIncrement == 0) || (getMax() / mKeyProgressIncrement > 20)){setKeyProgressIncrement(System.Math.Max(1, Sharpen.Util.Round((float)getMax() / 20)));}}}