From 0db98e41826b472888959e17cf94cd15608e8b6d Mon Sep 17 00:00:00 2001 From: Kevin Laskey Date: Mon, 5 Aug 2024 11:12:21 -0400 Subject: [PATCH] C2024-018 - Updated fixes per Michelle testing. Added some confirmation messages --- PROMS/VEPROMS User Interface/frmBatchRefresh.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/PROMS/VEPROMS User Interface/frmBatchRefresh.cs b/PROMS/VEPROMS User Interface/frmBatchRefresh.cs index 7f14c8f2..fcc90c5b 100644 --- a/PROMS/VEPROMS User Interface/frmBatchRefresh.cs +++ b/PROMS/VEPROMS User Interface/frmBatchRefresh.cs @@ -1520,7 +1520,7 @@ namespace VEPROMS { splitContainer3.Panel2Collapsed = false; progressSteps1.Items.Add(siOrphDatRecs); - lblAdmToolProgressType.Text = "Repairing: "; + lblAdmToolProgressType.Text = "Deleting: "; progressSteps1.Visible = true; progressSteps1.Refresh(); } @@ -1757,7 +1757,7 @@ namespace VEPROMS if (swDeleteFolder.Value) { - if (FlexibleMessageBox.Show(this, "You sure you want to remove the selected folders and their contents?", "Confirm Folder Deletion", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + if (FlexibleMessageBox.Show(this, "Are you sure you want to remove the selected folders and their contents?", "Confirm Folder Deletion", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { txtProcess.AppendText("Deleting Folders..."); @@ -1804,6 +1804,8 @@ namespace VEPROMS private void ProcessDelete(List foldersToDelete, List emptyFoldersToDelete) { + int foldersDeleted = 0; + DateTime pStart = DateTime.Now; txtProcess.AppendText(Environment.NewLine); txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); @@ -1823,6 +1825,7 @@ namespace VEPROMS if (deletionSuccessful) { txtProcess.AppendText($"Successfully deleted folder: {folderName} (ID: {itemID})"); + foldersDeleted += 1; } else { @@ -1847,14 +1850,20 @@ namespace VEPROMS if (deletionSuccessful) { txtProcess.AppendText($"Successfully deleted folder: {folderName} (ID: {itemID})"); + foldersDeleted += 1; } else { txtProcess.AppendText($"Failed to delete folder: {folderName} (ID: {itemID})"); } txtProcess.AppendText(Environment.NewLine); + } + + txtProcess.AppendText($"Folder deletion process completed, {foldersDeleted} folders have been deleted. "); + txtProcess.AppendText(Environment.NewLine); + //Run Repair int prgStpIdx = -1; StepProgress(++prgStpIdx, 50); @@ -1864,7 +1873,7 @@ namespace VEPROMS //rebuild ResetDelTV(true); - MessageBox.Show("Folder Deletion Completed", "Delete Folders"); + MessageBox.Show($"Folder deletion completed, {foldersDeleted} folders have been deleted.", "Delete Folders"); ClearStepProgress(); } -- 2.47.2