public void DrawString(int x, int y, string text, textAlingment TextAlignment = textAlingment.left, ConsoleColor color = colorMain)
        {
            switch (TextAlignment)
            {
            case textAlingment.left:
            {
                for (int i = 0; i < text.Length; i++)
                {
                    DrawOnCanvas((x + i) - text.Length, y, new Char(text[i], color));
                }
            }
            break;

            case textAlingment.middle:
            {
                for (int i = 0; i < text.Length; i++)
                {
                    DrawOnCanvas((x + i) - (int)Math.Round(text.Length / 2d), y, new Char(text[i], color));
                }
            }
            break;

            case textAlingment.right:
            {
                for (int i = 0; i < text.Length; i++)
                {
                    DrawOnCanvas((x + i) - text.Length, y, new Char(text[i], color));
                }
            }
            break;
            }
        }
 public void DrawString(int x, int y,string text, textAlingment TextAlignment = textAlingment.left,ConsoleColor color = colorMain)
 {
     switch (TextAlignment)
     {
         case textAlingment.left:
             {
                 for (int i = 0; i < text.Length; i++)
                 {
                     DrawOnCanvas((x + i) - text.Length, y, new Char(text[i], color));
                 }
             }
             break;
         case textAlingment.middle:
             {
                 for (int i = 0; i < text.Length; i++)
                 {
                     DrawOnCanvas((x + i) - (int)Math.Round(text.Length / 2d), y, new Char(text[i], color));
                 }
             }
             break;
         case textAlingment.right:
             {
                 for (int i = 0; i < text.Length; i++)
                 {
                     DrawOnCanvas((x + i) - text.Length, y, new Char(text[i], color));
                 }
             }
             break;
     }
 }