protected void waitUtilFalse(StringToBoolMethod condition, string argument) { while (condition(argument) && !finished) { ProcessUtils.Sleep(WAIT_SLEEP_INTERVAL); ProcessUtils.DoEvents(); } }