Quantcast
Channel: A simple menu in a Console Application - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Lord Darth Vader for A simple menu in a Console Application

There is a nuget package for this nowhttps://github.com/splttingatms/EasyConsoleExampleAfter adding the nuget package the Menu can be implemented the following way, This is a very Basic optionstatic...

View Article



Answer by Mayur Dhingra for A simple menu in a Console Application

You can use a do while loop for the purposeMake a little modification to your DispalyMenu() method and return the result like thisstatic public int DisplayMenu(){ Console.WriteLine("Football Manager");...

View Article

Answer by NotMe for A simple menu in a Console Application

See Console.ReadKey().Replace your main function with:static void Main(string[] args) { FootballTeams MyCode = new FootballTeams(); MyCode.ListInit(); ConsoleKeyInfo cki; do { MyCode.DisplayMenu(); cki...

View Article

A simple menu in a Console Application

I am trying to get my menu to repeat, so after selecting and doing option 1, it will got back to the menu and ask for another option to be chosenclass Program{ static void Main(string[] args) {...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>