Skip to content

Commit

Permalink
🚑 (example) enable the user to exit the Main method recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
MorganKryze committed Dec 30, 2023
1 parent 6875791 commit f802cc8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ private static void Main()
break;
}
Core.ClearContent();
break;
goto Menu;

case 1:
Core.UpdateScreen();
Core.WriteContinuousString(
Expand Down Expand Up @@ -129,7 +130,7 @@ private static void Main()

Console.ReadKey();
Core.ClearContent();
break;
goto Menu;

case 2:
Core.UpdateScreen();
Expand All @@ -147,7 +148,7 @@ private static void Main()

Console.ReadKey();
Core.ClearContent();
break;
goto Menu;

case 3:
Core.UpdateScreen();
Expand All @@ -161,7 +162,7 @@ private static void Main()

Console.ReadKey();
Core.ClearContent();
break;
goto Menu;

case 4:
Core.UpdateScreen();
Expand Down Expand Up @@ -192,7 +193,7 @@ private static void Main()

Console.ReadKey();
Core.ClearContent();
break;
goto Menu;

case 5:
Core.UpdateScreen();
Expand All @@ -201,7 +202,7 @@ private static void Main()
string name = answerPrompt.Item2;

Core.ClearContent();
break;
goto Menu;
case 6:
Core.UpdateScreen();

Expand All @@ -215,7 +216,7 @@ private static void Main()
float number = answerNumber.Item2;

Core.ClearContent();
break;
goto Menu;
case 7:
Core.UpdateScreen();

Expand All @@ -235,7 +236,7 @@ private static void Main()
students.ScrollingTableSelector(true, true);

Core.ClearContent();
break;
goto Menu;

default:
Core.ClearContent();
Expand Down Expand Up @@ -278,7 +279,6 @@ private static void Main()
default:
break;
}
goto Menu;
}

public static void Debugging()
Expand Down

0 comments on commit f802cc8

Please sign in to comment.