Пример #1
0
        public static void Main()
        {
            while (true)
            {
                Person.ListStatus();

                Console.WriteLine("Type 1 and press enter to add a new person data");
                Console.WriteLine("Type 2 and press enter to remove a person data");
                Console.WriteLine("Type 3 and press enter to close application");

                string input = Console.ReadLine();



                if (input == "1")
                {
                    Console.Clear();
                    Menu();
                }

                else if (input == "2")
                {
                    Console.Clear();
                    Person.ListStatus();
                    Person.RemoveFromList();
                }

                else if (input == "3")
                {
                    Environment.Exit(0);
                }
            }
        }