Пример #1
0
        static void Osnova(int AllChislo, int Chislo, int Max)
        {
            AllRazborFile TheLink = new AllRazborFile();
            string        Empty;

            Raznost(Max, ref AllChislo, Chislo);

            for (int i = 0; i < AllChislo; i++)
            {
                Console.Write(" "); Empty = " "; TheLink.Print(Empty);
            }
            Console.Write(Chislo); Empty = Convert.ToString(Chislo); TheLink.Print(Empty);
        }
Пример #2
0
        static void FirstStrok(int Max)
        {
            AllRazborFile TheLink = new AllRazborFile();
            string        Empty;

            for (int i = 0; i < Max; i++)
            {
                Console.Write("-"); Empty = "-"; TheLink.Print(Empty);
            }
        }
Пример #3
0
        static void XandYstroka(int Max, string x)
        {
            AllRazborFile TheLink = new AllRazborFile();
            string        Empty;

            if (Max % 2 == 0)
            {
                for (int i = 0; i < Max / 2 - 1; i++)
                {
                    Console.Write(" "); Empty = " "; TheLink.Print(Empty);
                }
                Console.Write(x); Empty = x; TheLink.Print(Empty);
                for (int i = 0; i < Max / 2; i++)
                {
                    Console.Write(" "); Empty = " "; TheLink.Print(Empty);
                }
            }
            else
            {
                for (int i = 0; i < Max / 2; i++)
                {
                    Console.Write(" "); Empty = " "; TheLink.Print(Empty);
                }
                Console.Write(x); Empty = x; TheLink.Print(Empty);
                for (int i = 0; i < Max / 2; i++)
                {
                    Console.Write(" "); Empty = " "; TheLink.Print(Empty);
                }
            }
        }
Пример #4
0
        static void TablInfo(int MaxX, int MaxFunc, int AllChislaX, int AllChislaFunc, int KolX, int KolFunc, List <string> Funcion, List <string> VseX)
        {
            AllRazborFile TheLink = new AllRazborFile();

            TheLink.ClearFile();

            string X = "x"; string Y = "y"; int ChisloX; int ChisloFunc; string Empty;

            Console.Write("|-");
            Empty = "|-"; TheLink.Print(Empty);
            FirstStrok(MaxX);
            Console.Write("-|-");
            Empty = "-|-"; TheLink.Print(Empty);
            FirstStrok(MaxFunc);
            Console.WriteLine("-|");
            Empty = "-|"; TheLink.Print(Empty);
            TheLink.NewStroka();

            Console.Write("| ");
            Empty = "| "; TheLink.Print(Empty);
            XandYstroka(MaxX, X);
            Empty = " | "; TheLink.Print(Empty);
            Console.Write(" | ");
            XandYstroka(MaxFunc, Y);
            Console.WriteLine(" |");
            Empty = " |"; TheLink.Print(Empty);
            TheLink.NewStroka();

            Console.Write("|-");
            Empty = "|-"; TheLink.Print(Empty);
            FirstStrok(MaxX);
            Console.Write("-|-");
            Empty = "-|-"; TheLink.Print(Empty);
            FirstStrok(MaxFunc);
            Console.WriteLine("-|");
            Empty = "-|"; TheLink.Print(Empty);
            TheLink.NewStroka();

            for (int i = 0; i < KolX; i++)
            {
                ChisloX    = Convert.ToInt32(VseX[i]);
                ChisloFunc = Convert.ToInt32(Funcion[i]);
                Console.Write("| "); Empty = "| "; TheLink.Print(Empty);

                Osnova(AllChislaX, ChisloX, MaxX);
                Console.Write(" | "); Empty = " | "; TheLink.Print(Empty);
                Osnova(AllChislaFunc, ChisloFunc, MaxFunc);
                Console.WriteLine(" |"); Empty = " |"; TheLink.Print(Empty);
                TheLink.NewStroka();
            }
        }