Ejemplo n.º 1
0
        private void m_InvokeOnNewSearched(InterfaceSearchedFile file, int searchID)
        {
            AsyncCallback      callback = new AsyncCallback(MyCallback);
            SearchFileDelegate d        = new SearchFileDelegate(m_OnNewSearched);

            d.BeginInvoke(file, searchID, callback, 1);
        }
Ejemplo n.º 2
0
        public void MyCallback(IAsyncResult result)
        {
            AsyncResult        ar = (AsyncResult)result;
            SearchFileDelegate d  = (SearchFileDelegate)ar.AsyncDelegate;

            //int state=(int)ar.AsyncState;
            d.EndInvoke(result);
            //int i=d.EndInvoke(result);
            //Console.WriteLine(i);
            //Console.WriteLine(state);
            //Console.ReadLine();
        }
Ejemplo n.º 3
0
 private void m_InvokeOnNewSearched(InterfaceSearchedFile file, int searchID)
 {
     AsyncCallback callback=new AsyncCallback(MyCallback);
     SearchFileDelegate d=new SearchFileDelegate(m_OnNewSearched);
     d.BeginInvoke(file,searchID,callback,1);
 }