Exemplo n.º 1
0
        public static void SetConsoleVersion(RegistryHelper reg, ConsoleVersion version)
        {
            switch (version)
            {
            case ConsoleVersion.V1:
                Log.Comment("Setting console to v1 mode.");
                reg.SetDefaultValue(v1v2ValueName, 0);
                break;

            case ConsoleVersion.V2:
                Log.Comment("Setting console to v2 mode.");
                reg.SetDefaultValue(v1v2ValueName, 1);
                break;

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Start Console Vertion
        /// </summary>
        private static void RunConsoleVersion()
        {
            Console.Clear();
            Display.Message($"CONSOLE_VERTION WORK", ConsoleColor.Green);

            ConsoleVersion.Run();

            Display.Message("Run the CSV file generator in Emulator");
            Console.WriteLine("");
            do
            {
                while (!Console.KeyAvailable)
                {
                }
            } while (Console.ReadKey(true).Key != ConsoleKey.Escape);

            ConsoleVersion.StopFileWatcher();

            Display.WaitForContinue("File watcher is stopped", ConsoleColor.Green);
        }