Ejemplo n.º 1
0
        public static void ChangeTrapezium()
        {
            int changeTrapezium;

            Console.WriteLine("\nПовторить?");
            Console.WriteLine("1. Да\n2. Нет");

            try
            {
                changeTrapezium = int.Parse(Console.ReadLine());
                if (changeTrapezium is 1)
                {
                    Console.Clear();
                    Trapezium();
                }

                else if (changeTrapezium is 2)
                {
                    Console.Clear();
                    SelectRUS.ChangeShapeOperation();
                }

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

            catch
            {
                ExeptionFilter.ExeptionOutput();
                ChangeTrapezium();
            }
        }
Ejemplo n.º 2
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;
            }
        }
Ejemplo n.º 3
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();
     }
 }
Ejemplo n.º 4
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();
            }
        }