Exemplo n.º 1
0
        public static void CheckToExitProgram()
        {
            Console.WriteLine("Do you want to EXIT from PROGRAM: y/n? ");
            string user = Console.ReadLine();

            while (user != "y" && user != "n")
            {
                Console.WriteLine("Please insert correct value");
                Console.Write(" Chose: ");
                user = Console.ReadLine();
            }
            if (user == "n")
            {
                FrontEnd.Start();
            }
        }
Exemplo n.º 2
0
        public static void CheckAfterPrintSynteticAssignments()
        {
            Console.WriteLine("Do you want to EXIT from Menu: y/n? ");
            string user = Console.ReadLine();

            while (user != "y" && user != "n")
            {
                Console.WriteLine("Please insert correct value");
                Console.Write(" Chose: ");
                user = Console.ReadLine();
            }
            if (user == "y")
            {
                FrontEnd.InputSynthetic();
            }
            else
            {
                FrontEnd.InputAssignments();
            }
        }
Exemplo n.º 3
0
        public static void CheckToExitFolderInput()
        {
            Console.WriteLine("Do you want to EXIT from Menu: y/n? ");
            string user = Console.ReadLine();

            while (user != "y" && user != "n")
            {
                Console.WriteLine("Please insert correct value");
                Console.Write(" Chose: ");
                user = Console.ReadLine();
            }
            if (user == "y")
            {
                FrontEnd.Start();
            }
            else
            {
                FrontEnd.InputData();
            }
        }