コード例 #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(" Select: (y/n) ");
                user = Console.ReadLine();
            }
            if (user == "n")
            {
                FrontEnd.Start();
            }
        }
コード例 #2
0
        public static void CheckToExitFolderSyntetic()
        {
            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(" Select: (y/n) ");
                user = Console.ReadLine();
            }
            if (user == "y")
            {
                FrontEnd.Start();
            }
            else
            {
                FrontEnd.ExportData();
            }
        }
 static void Main(string[] args)
 {
     FrontEnd.Start();
 }