Ejemplo n.º 1
0
 private void DrawCornerBorders()
 {
     Charmap[0, 0] = BorderDesign.GetBorderChar(Style, BorderPosition.LeftUpper);
     Charmap[0, Charmap.GetLength(1) - 1] = BorderDesign.GetBorderChar(Style, BorderPosition.RightUpper);
     Charmap[Charmap.GetLength(0) - 1, 0] = BorderDesign.GetBorderChar(Style, BorderPosition.LeftLower);
     Charmap[Charmap.GetLength(0) - 1, Charmap.GetLength(1) - 1] = BorderDesign.GetBorderChar(Style, BorderPosition.RightLower);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Setting higher window border
        /// </summary>
        private void GenerateTopBorder()
        {
            // Setting left upper window corner char
            charmap[0, 0] = BorderDesign.GetBorderChar(BorderStyle.Rounded, BorderPosition.LeftUpper);

            // Setting right upper window corner char
            charmap[0, Width - 1] = BorderDesign.GetBorderChar(BorderStyle.Rounded, BorderPosition.RightUpper);

            // Filling higher border between left and right upper corners
            for (int i = 1; i < Charmap.GetLength(1) - 1; i++)
            {
                charmap[0, i] = BorderDesign.GetBorderChar(BorderStyle.Rounded, BorderPosition.Horizontal);
            }
        }
Ejemplo n.º 3
0
        private void DrawBorders()
        {
            for (int i = 1; i < Charmap.GetLength(0) - 1; i++)
            {
                Charmap[i, 0] = BorderDesign.GetBorderChar(Style, BorderPosition.Vertical);
                Charmap[i, Charmap.GetLength(1) - 1] = BorderDesign.GetBorderChar(Style, BorderPosition.Vertical);
            }

            for (int i = 1; i < Charmap.GetLength(1) - 1; i++)
            {
                Charmap[0, i] = BorderDesign.GetBorderChar(Style, BorderPosition.Horizontal);
                Charmap[Charmap.GetLength(0) - 1, i] = BorderDesign.GetBorderChar(Style, BorderPosition.Horizontal);
            }
        }