public bool WaitForDocumentCount(int desired_count) { WaitOnDocumentCount wait_client = new WaitOnDocumentCount(desired_count, this); int timeout = 30 * 1000; // 30 seconds int interval = 500; // .5 second int elapsed; bool success; success = WindowsAutomation.Timing.WaitObject.WaitForCondition(wait_client, timeout, interval, out elapsed); return(success); }
public static bool WaitForDocumentCount(int painter_hwnd, int desired_count) { WaitOnDocumentCount wait_client = new WaitOnDocumentCount(painter_hwnd, desired_count); int timeout = 30 * 1000; // 30 seconds int interval = 500; // .5 second int elapsed; bool success; success = win32auto.WaitObject.WaitForCondition(wait_client, timeout, interval, out elapsed); return(success); }
public static bool WaitForDocumentCount( int painter_hwnd, int desired_count ) { WaitOnDocumentCount wait_client = new WaitOnDocumentCount ( painter_hwnd, desired_count ); int timeout = 30 * 1000 ; // 30 seconds int interval = 500; // .5 second int elapsed; bool success; success = win32auto.WaitObject.WaitForCondition( wait_client, timeout, interval, out elapsed ); return success; }
public bool WaitForDocumentCount( int desired_count ) { WaitOnDocumentCount wait_client = new WaitOnDocumentCount ( desired_count , this); int timeout = 30 * 1000 ; // 30 seconds int interval = 500; // .5 second int elapsed; bool success; success = WindowsAutomation.Timing.WaitObject.WaitForCondition( wait_client, timeout, interval, out elapsed ); return success; }