Basically I am building a C# console application, at the moment I have a menu in place, this menu allows the user to choose between two car factories, one in Detroit and one in Seattle, once the user chooses a factory, another message is displayed saying how many workers work at that specific factory, for convenience sake I've said two workers work at both factories. From there, I need a submenu to open that presents the user with four options:
1. Locate A Specific Vehicle
2. Locate A Specific Worker
3. Create A New Rota
4. Exit Menu
Could any of you please advise me on how to do so, the code I have at the moment is:
public string GetMenu()
{
return "Welcome To " + this.factoryName + ".\nWe have " + myWorkers.Count.ToString() + " workers.";
}
How do I create a sub menu after this line of code which holds the relevant data?
This post has been edited by JackOfAllTrades: 06 March 2012 - 03:18 PM
Reason for edit:: Added code tags

New Topic/Question
Reply



MultiQuote








|