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();
 }
Пример #2
0
        private int GetYPosition(LogHistoryContainer container, int currentOffset)
        {
            var height = Console.WindowHeight;
            var y      = 0;

            switch (container.Location)
            {
            case RowLocation.Top:
                y = currentOffset + container.Index;
                break;

            case RowLocation.Bottom:
                y = height - container.Index - currentOffset - 1;
                break;

            case RowLocation.Middle:
                break;
            }
            return(y);
        }
Пример #3
0
 private int GetXPosition(LogHistoryContainer container, int currentOffset)
 {
     return(0);
 }