/// <summary> /// Renders a header panel. /// </summary> public virtual void ShowHeaderPanel() { Panel panel = new Panel { Text = Header, BackgroundColor = ConsoleColor.DarkCyan, Color = ConsoleColor.White, }; panel.Show(); }
/// <summary> /// Renders a panel with text. /// </summary> /// <param name="text">The text to be rendered in the panel.</param> /// <param name="color">The color of the text.</param> /// <param name="backgroundColor">The color of the panel.</param> public virtual void ShowPanel(string text, ConsoleColor color, ConsoleColor backgroundColor) { Panel panel = new Panel { Text = text, Color = color, BackgroundColor = backgroundColor }; Console.WriteLine(); panel.Show(); }