Skip to content

Commit

Permalink
Tervezési minták lab egyszerűbb progress kezelés
Browse files Browse the repository at this point in the history
  • Loading branch information
bzolka committed May 18, 2024
1 parent ba5e115 commit 5e8b5e8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/labor/6-tervezesi-mintak/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -627,10 +627,7 @@ A következő lépésben vezessük be a **progress kezeléshez** tartozó interf
{
int percentage = (int)((double)(index+1) / count * 100);

var pos = Console.GetCursorPosition();
Console.SetCursorPosition(0, pos.Top);

Console.Write($"Processing: {percentage} %");
Console.Write($"\rProcessing: {percentage} %");

if (index == count - 1)
Console.WriteLine();
Expand Down

0 comments on commit 5e8b5e8

Please sign in to comment.