/// <summary> /// Handles the DeletingDirectory event of the jobWorker control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="FlagSync.Core.DirectoryDeletionEventArgs"/> instance containing the event data.</param> private void jobWorker_DeletingDirectory(object sender, DirectoryDeletionEventArgs e) { this.IsDeleting = true; this.AddLogMessage(Resources.DeletingString, Resources.DirectoryString, e.DirectoryPath, String.Empty, false, null); }
/// <summary> /// Handles the DeletedDirectory event of the jobWorker control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="FlagSync.Core.DirectoryDeletionEventArgs"/> instance containing the event data.</param> private void jobWorker_DeletedDirectory(object sender, DirectoryDeletionEventArgs e) { this.LastLogMessage.Progress = 100; }
/// <summary> /// Handles the DirectoryDeletionError event of the jobWorker control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="FlagSync.Core.DirectoryDeletionEventArgs"/> instance containing the event data.</param> private void jobWorker_DirectoryDeletionError(object sender, DirectoryDeletionEventArgs e) { this.DeleteLastLogMessage(); this.AddLogMessage(Resources.DeletionErrorString, Resources.DirectoryString, e.DirectoryPath, String.Empty, true, null); }