internal void OnDeleteCompleted(object sender, DeletionArgs args) { RemoveActiveDeletion(args.FilePath); if (DeleteCompleted != null) { DeleteCompleted.Invoke(sender, args); } //if (Monitor != null) // Monitor.DeleteCompleted(this, args); }
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); }
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); }
private void AddActiveDeletion(string key, DeletionArgs value) { // TODO(jweyrich): Do we want to track this visually? }