예제 #1
0
        //
        // Helpers

        protected void Awaiter_DoFilter(
            AutomationElement ae,
            WaitersDictionary waiters)
        {
            foreach (var filterFunc in waiters.Keys.ToList())
            {
                if (filterFunc(ae))
                {
                    var awaiterData = waiters.SafeGet(filterFunc);

                    awaiterData.res     = ae;
                    waiters[filterFunc] = awaiterData;

                    awaiterData.ev.Set();
                }
            }
        }