public virtual void SetToMinimum() { var clock = new Clock(CoreAppXmlConfiguration.Instance.BusyTimeout, 0); clock.RunWhile(() => BackLargeChangeButton.PerformClick(), () => Value > 0, delegate { throw new UIActionException(string.Format("Could not set the ScrollBar to minimum visible{0}", Constants.BusyMessage)); }); WhiteLogger.Instance.DebugFormat("ScrollBar position set to {0}", Value); }
public virtual void SetToMinimum() { var value = Retry.For(() => { BackLargeChangeButton.PerformClick(); return(Value); }, v => v > 0, CoreAppXmlConfiguration.Instance.BusyTimeout(), TimeSpan.FromMilliseconds(0)); if (value > 0) { throw new UIActionException(string.Format("Could not set the ScrollBar to minimum visible{0}", Constants.BusyMessage)); } logger.DebugFormat("ScrollBar position set to {0}", Value); }
public virtual void ScrollUpLarge() { BackLargeChangeButton.PerformClick(); }