/// <summary> /// Launch a screen and then clean up after it so we can continue using this screen. /// </summary> /// <param name="theme">The visual theme to use to draw the dialog</param> /// <param name="cs">Subscreen to launch</param> /// <param name="newProc">Function to drive the screen, default is normal interaction</param> protected void LaunchSubScreen(ConsoleTheme theme, ConsoleScreen cs, Action <ConsoleTheme> newProc = null) { cs.Run(theme, newProc); DrawBackground(theme); Draw(theme); }
/// <summary> /// Launch a screen and then clean up after it so we can continue using this screen. /// </summary> /// <param name="cs">Subscreen to launch</param> /// <param name="newProc">Function to drive the screen, default is normal interaction</param> protected void LaunchSubScreen(ConsoleScreen cs, Action newProc = null) { cs.Run(newProc); DrawBackground(); Draw(); }