示例#1
0
 public void CheckConsoleState()
 {
     if (Green && Yellow && Red)
     {
         ConsoleInteract console = GetComponentInParent <ConsoleInteract>();
         console.UnlockConsole();
     }
 }
示例#2
0
        static void Main(string[] args)
        {
            /*
             *  SetThingsup();
             *
             *  WriteLine($"Files and Content Sizes:{FilesAndContent.Count} ");
             *
             *  WriteLine("Villena flavor type of matrix and metric. ");
             *  TextFileClusterReporter tfr = new TextFileClusterReporter(FilesAndContent);
             *  WriteLine(tfr.GetReport());
             *
             *  WriteLine("* Let's use a vectorized metric for it. ");
             *  SettingsManager.SetDisFxnToVecNorm();
             *  tfr = new TextFileClusterReporter(FilesAndContent);
             *  WriteLine(tfr.GetReport());
             *
             *  WriteLine("* Let's use the second order transition matrix: ");
             *  SettingsManager.Set2ndTM27ForTransitionMatrix();
             *  tfr = new TextFileClusterReporter(FilesAndContent);
             *  WriteLine(tfr.GetReport());
             *
             *  WriteLine("Let's change the metric back to 2 norm");
             *  SettingsManager.SetDisFxnTo2Norm();
             *  tfr = new TextFileClusterReporter(FilesAndContent);
             *  WriteLine(tfr.GetReport());
             */
            /*
             *  CancellationTokenSource cts = ConsoleLog.DisplayLoadingBard();
             *  Thread.Sleep(10000);
             *  cts.Cancel();
             */

            string UserInputs = ConsoleInteract.
                                GetUserInput("Give me a file directory",
                                             @"^""((?:[^/]*\/)*)(.*)"" (p:\w+\s*|r\s*|tm:\w+\s*|mm:\w+\s*)*$");

            IDictionary <string, string> inputs = InterpParameters(UserInputs);

            foreach (KeyValuePair <string, string> kvp in inputs)
            {
                Console.WriteLine($"{kvp.Key}: {kvp.Value}");
            }
            Console.ReadKey();
        }