Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // Even this upper limit is a pain.
            Console.SetIn(new StreamReader(Console.OpenStandardInput(1024)));
            MenuDriver driver = new MenuDriver();

            driver.Run();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Invokes the screen action and passes the menu driver.
 /// </summary>
 /// <param name="screenDriver">The driver for the screens.</param>
 /// <returns>The next screen to go to.</returns>
 public GetScreen Invoke(MenuDriver screenDriver)
 {
     return(action(screenDriver));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Invokes the screen action and passes the menu driver.
 /// </summary>
 /// <param name="menuDriver">The driver for the screens.</param>
 /// <returns>The next screen to go to.</returns>
 public Screen Invoke(MenuDriver menuDriver)
 {
     return(action(menuDriver));
 }