Пример #1
0
        private void DrawElement(int index)
        {
            int    lineNumber = index + this.TopMargin;
            string text       = this.Values[index];

            ConsoleBasicDraw.DrawFlatText(text, lineNumber, this.Background,
                                          this.Foreground);
        }
Пример #2
0
        private void DrawSelectedElement(int prevIndex)
        {
            this.DrawElement(prevIndex);
            string text       = this.Values[this.SelectedIndex];
            int    lineNumber = this.SelectedIndex + this.TopMargin;

            ConsoleBasicDraw.DrawFlatText(text, lineNumber, this.Foreground,
                                          this.Background);
        }
Пример #3
0
        public void Draw(string title, params string[] arguments)
        {
            string definition = this.BuildDefinitionValue(arguments);
            string message    = this.BuildFullRow(title, definition);

            ConsoleBasicDraw.DrawFlatText(message, this.currentLine,
                                          ConsoleColor.White, ConsoleColor.Black);

            this.currentLine++;
        }