Exemplo n.º 1
0
 private void wifi_AsyncResponse(object sender, AsyncResponseEventArgs e)
 {
     dgEvents.Invoke(new CrossThreadDelegate(() =>
     {
         dgEvents.Rows.Add(e.Number, e.Message);
     }));
 }
Exemplo n.º 2
0
 protected virtual void OnAsyncResponse(int number, string message)
 {
     if (AsyncResponse != null)
     {
         var args = new AsyncResponseEventArgs();
         args.Number  = number;
         args.Message = message;
         AsyncResponse(this, args);
     }
 }
Exemplo n.º 3
0
 private void wifi_AsyncResponse(object sender, AsyncResponseEventArgs e)
 {
     dgEvents.Invoke(new CrossThreadDelegate(() =>
     {
         dgEvents.Rows.Add(e.Number, e.Message);
     }));
 }