Example #1
0
        public static void ChangeCheck()
        {
            switch (change)
            {
            case 1:
                Console.Clear();
                SelectRUS.ChangeShapeOperation();
                break;

            case 2:
                Console.Clear();
                SelectENG.ChangeShapeOperationENG();
                break;

            case 9:

                Environment.Exit(0);
                break;

            default:
                ExeptionFilter.ExeptionOutputRUSAndENG();
                ChangeLang();
                break;
            }
        }
Example #2
0
 public static void CheckSelect2()
 {
     if (Choice == 1)
     {
         Console.Clear();
         CircleArea.CircleAreaShape();
     }
     else if (Choice == 2)
     {
         Console.Clear();
         SquareArea.SquareAreaShape();
     }
     else if (Choice == 3)
     {
         Console.Clear();
         TrapeziumArea.Trapezium();
     }
     else if (Choice == 8)
     {
         Console.Clear();
         SelectRUS.ChangeShapeOperation();
     }
     else
     {
         ExeptionFilter.ExeptionOutput();
         SelectShapes();
     }
 }
Example #3
0
 public static void ChangeLang()
 {
     Console.WriteLine("Select language / Выберете язык");
     Console.Write("1. RUS\n2. ENG\n\n9.Exit the program / Выйти из программы\n\nChange / Выбор: ");
     try
     {
         change = int.Parse(Console.ReadLine());
         ChangeCheck();
     }
     catch
     {
         ExeptionFilter.ExeptionOutputRUSAndENG();
         ChangeLang();
     }
 }
Example #4
0
 public static void SectionGradusXY()
 {
     try
     {
         Console.Write("Введите координат X: ");
         X = double.Parse(Console.ReadLine());
         Console.Write("Введите координат Y: ");
         Y = double.Parse(Console.ReadLine());
         CheckGradus();
     }
     catch
     {
         ExeptionFilter.ExeptionOutput();
         SectionGradusXY();
     }
 }
Example #5
0
        public static void SelectShape()
        {
            Console.WriteLine("Выбирете фигуру:");
            Console.WriteLine("1.Отрезок по осям 'X,Y' ");
            Console.WriteLine("\n8. Назад.");

            try
            {
                ChangeOp = int.Parse(Console.ReadLine());
                CheckSelect2();
            }
            catch
            {
                ExeptionFilter.ExeptionOutput();
                SelectShape();
            }
        }
Example #6
0
        public static void SelectShapes()
        {
            Console.WriteLine("Выбирете фигуру.");
            Console.WriteLine("1. Круг");
            Console.WriteLine("2. Квадрат");
            Console.WriteLine("3. Трапеция");
            Console.WriteLine("\n8. Назад.");

            try
            {
                Choice = int.Parse(Console.ReadLine());
                CheckSelect2();
            }
            catch
            {
                ExeptionFilter.ExeptionOutput();
                SelectShapes();
            }
        }
Example #7
0
        public static void CheckSelect2()
        {
            if (ChangeOp is 1)
            {
                Console.Clear();
                SectionGradus.SectionGradusXY();
            }

            else if (ChangeOp is 8)
            {
                Console.Clear();
                SelectRUS.ChangeShapeOperation();
            }

            else
            {
                ExeptionFilter.ExeptionOutput();
                SelectShape();
            }
        }