public void EndInvoke(IAsyncResult ar)
 {
     if (MyEvent != null)
     {
         MyEvent.EndInvoke(ar);
     }
 }