protected virtual void OnBackgroundOpenReadAsyncCompleted(BackgroundOpenReadAsyncEventArgs args)
 {
     if (BackgroundOpenReadAsyncCompleted != null)
     {
         if (ESRI.ArcGIS.Client.Extensibility.MapApplication.Current != null)
         {
             ESRI.ArcGIS.Client.Extensibility.MapApplication.Current.Dispatcher.BeginInvoke((Action) delegate
             {
                 BackgroundOpenReadAsyncCompleted(this, args);
             });
         }
         else
         {
             BackgroundOpenReadAsyncCompleted(this, args);
         }
     }
 }
 protected virtual void OnBackgroundOpenReadAsyncCompleted(BackgroundOpenReadAsyncEventArgs args)
 {
     if (BackgroundOpenReadAsyncCompleted != null)
     {
         if (ESRI.ArcGIS.Client.Extensibility.MapApplication.Current != null)
         {
             ESRI.ArcGIS.Client.Extensibility.MapApplication.Current.Dispatcher.BeginInvoke((Action)delegate
                 {
                     BackgroundOpenReadAsyncCompleted(this, args);
                 });
         }
         else
             BackgroundOpenReadAsyncCompleted(this, args);
     }
 }