Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
		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;
		}