public ComponentRenderer(IExtendedConsole console, ConsoleDataContext dataContext)
        {
            _console     = console;
            _dataContext = dataContext;

            _isRunning.Reset();
            InitializeBuiltInComponents();
            _componentUpdateThread = new Thread(new ThreadStart(ComponentUpdateThread));
            _componentUpdateThread.Start();
        }
 public ExtendedConsoleConfiguration()
 {
     MaxHistoryLines     = DefaultMaxHistoryLines;
     StaticRows          = new List <StaticRowConfig>();
     CustomComponents    = new Dictionary <string, Type>();
     LogHistoryContainer = new LogHistoryContainer(RowLocation.Top, 0);
     WindowFrame         = WindowFrame.None;
     RedrawTimeSpan      = TimeSpan.FromMilliseconds(100);
     DataContext         = new ConsoleDataContext();
     HelpScreen          = new DefaultHelpScreen();
     ColorPalette        = new ColorPalette();
 }
 /// <summary>
 /// Set the data context to use for sending data to custom components
 /// </summary>
 /// <param name="context"></param>
 public void SetDataContext(ConsoleDataContext context)
 {
     DataContext = context;
 }