public DataEventCollection EndFindField1(IAsyncResult data) { if (data is FindCallbackData) { FindCallbackData find = data as FindCallbackData; find.AsyncWaitHandle.WaitOne(); return(find.AsyncState as DataEventCollection); } return(new DataEventCollection()); }
private void FindCallback(object eventdata) { FindCallbackData find = eventdata as FindCallbackData; find.Find(); }