Skip to content

Commit

Permalink
Add progress bar (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk4j authored Feb 19, 2024
1 parent 57a0777 commit 6be1ec8
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 107 deletions.
9 changes: 9 additions & 0 deletions WreckGui/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion WreckGui/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ public void UnauthorizedAccessException(UnauthorizedAccessException ex)
/// <param name="progress"></param>
public void SetProgress(int progress)
{
log.DebugFormat("Progress = {0}%", progress);
if(!toolStripProgressBar.Visible)
toolStripProgressBar.Visible = true;
this.toolStripProgressBar.Value = progress;
}

/// <summary>
Expand Down Expand Up @@ -264,6 +266,7 @@ public void Done()
{
SetCurrentFile(string.Empty);
rootNode.ExpandAll();
toolStripProgressBar.Visible = false;
}
}
}
Loading

0 comments on commit 6be1ec8

Please sign in to comment.