示例#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
 internal void OnDeleteStarted(object sender, DeletionArgs args)
 {
     AddActiveDeletion(args.FilePath, args);
     if (DeleteStarted != null)
     {
         DeleteStarted.Invoke(sender, args);
     }
     //if (Monitor != null)
     //	Monitor.DeleteAdded(this, args);
 }
示例#3
0
 internal void OnDeleteFailed(object sender, DeletionArgs args)
 {
     RemoveActiveDeletion(args.FilePath);
     ErrorMessages.Add(string.Format("Deleting {0} failed: {1}", args.FilePath, args.Exception.Message));
     if (DeleteFailed != null)
     {
         DeleteFailed.Invoke(sender, args);
     }
     //if (Monitor != null)
     //	Monitor.DeleteFailed(this, args);
 }
示例#4
0
 private void AddActiveDeletion(string key, DeletionArgs value)
 {
     // TODO(jweyrich): Do we want to track this visually?
 }