예제 #1
0
 internal void OnDeleteCompleted(object sender, DeletionArgs args)
 {
     RemoveActiveDeletion(args.FilePath);
     if (DeleteCompleted != null)
     {
         DeleteCompleted.Invoke(sender, args);
     }
     //if (Monitor != null)
     //	Monitor.DeleteCompleted(this, args);
 }
예제 #2
0
 /// <summary>
 /// Raises the event.
 /// </summary>
 /// <param name="e">
 /// The parameter provided to the event handler.
 /// </param>
 /// <remarks>
 /// <para>
 /// If your application is running in WPF, this event
 /// will be raised on the UI thread automatically.
 /// </para><para>
 /// If your application is running in Windows Forms,
 /// this event will be raised on a background thread.
 /// If you also set DataPortal.SynchronizationObject
 /// to a Windows Forms form or control, then the event
 /// will be raised on the UI thread automatically.
 /// </para><para>
 /// In any other environment (such as ASP.NET), this
 /// event will be raised on a background thread.
 /// </para>
 /// </remarks>
 protected virtual void OnDeleteCompleted(DataPortalResult <T> e)
 {
     DeleteCompleted?.Invoke(this, e);
 }
예제 #3
0
 protected void OnSearchCompleted(RunWorkerCompletedEventArgs e)
 {
     DeleteCompleted?.Invoke(this, e);
 }
예제 #4
0
 public void OnDeleteCompleted(bool success, string queryString)
 {
     DeleteCompleted?.Invoke(this, new DeleteCompletedEventArgs {
         Success = success, QueryString = queryString
     });
 }