示例#1
0
        private static void ChooseTask(Tasks tasks)
        {
            int iChooseTask = Convert.ToInt32(tasks);

            iChooseTask = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine(" ");

            switch (iChooseTask)
            {
            case 1:
                Console.WriteLine(" ");
                Console.WriteLine("Running calculator");
                Calculator.StartProgram();
                break;

            case 2:
                Console.WriteLine("Running discriminant");
                Discriminant.StartProgram();
                break;

            case 3:
                Console.WriteLine("Running matrix");

            default:
                Console.WriteLine("No such figure");
                ShowMenu();
                break;
            }
        }