Skip to content

Commit 235258c

Browse files
committed
Added folder name to results page
1 parent a21f2fa commit 235258c

File tree

3 files changed

+51
-20
lines changed

3 files changed

+51
-20
lines changed

WindowsApp1/Compact.Designer.vb

Lines changed: 37 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WindowsApp1/Compact.vb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Public Class Compact
5353

5454
Try
5555

56-
If e.Data.Contains("total bytes of data are stored in") Then 'Gets the output line that contains both the pre- and post-compression folder sizes
56+
If e.Data.Contains("total bytes of data are stored in") Then 'Gets the output line that contains both the pre- and post-compression folder sizes
5757
byteComparisonRaw = e.Data
5858
End If
5959

@@ -170,6 +170,7 @@ Public Class Compact
170170
progressPageLabel.Text = "This folder contains compressed items"
171171
progresspercent.Visible = False
172172

173+
173174
End If
174175

175176
compressFinished = 0
@@ -249,7 +250,7 @@ Public Class Compact
249250

250251
End Sub
251252

252-
253+
Dim dirLabelResults As String = ""
253254

254255
Private Sub SelectFolder(selectedDir As String, senderID As String)
255256
Dim wDString = selectedDir
@@ -276,6 +277,9 @@ Public Class Compact
276277
uncompressedfoldersize = Math.Round(DirectorySize(DIwDString, True), 0)
277278
preSize.Text = "Uncompressed Size: " + GetOutputSize _
278279
(Math.Round(DirectorySize(DIwDString, True), 0), True)
280+
281+
dirLabelResults = DIwDString.Name.ToString
282+
279283
preSize.Visible = True
280284
buttonQueryCompact.Visible = True
281285

@@ -305,7 +309,7 @@ Public Class Compact
305309
End If
306310

307311

308-
End If
312+
End If
309313
End Sub
310314

311315

@@ -347,6 +351,7 @@ Public Class Compact
347351
.RedirectStandardInput = True
348352
.RedirectStandardOutput = True
349353
.RedirectStandardError = True
354+
350355
End With
351356

352357
MyProcess.Start()
@@ -510,6 +515,8 @@ Public Class Compact
510515
spaceSavedLabel.Text = GetOutputSize _
511516
((oldFolderSize - newfoldersize), True) + " Saved"
512517

518+
dirChosenLabel.Text = "❯ In " + dirLabelResults
519+
513520
labelFilesCompressed.Text =
514521
numberFilesCompressed.ToString + " / " + fileCountTotal.ToString + " files compressed"
515522

@@ -531,6 +538,7 @@ Public Class Compact
531538

532539
CompResultsPanel.Visible = True
533540

541+
534542
ElseIf isQueryCalledByCompact = 1 Then
535543

536544
buttonRevert.Visible = False

WindowsApp1/My Project/AssemblyInfo.vb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Imports System
1+
Imports System.Resources
2+
Imports System
23
Imports System.Reflection
34
Imports System.Runtime.InteropServices
45

@@ -33,3 +34,4 @@ Imports System.Runtime.InteropServices
3334

3435
<Assembly: AssemblyVersion("1.3.3.0")>
3536
<Assembly: AssemblyFileVersion("1.3.3.0")>
37+
<Assembly: NeutralResourcesLanguage("en")>

0 commit comments

Comments
 (0)