//static void PrintHint() //{ // Console.Write("["); // Console.ForegroundColor = ConsoleColor.Green; // Console.Write("Local"); // Console.ResetColor(); // Console.Write("]>"); //} static void Check00() { if (GlobalConfiguration.GetListenPrefixesCount(Auth) == 0) { Console.WriteLine("Listening Url Not Found!"); Console.WriteLine("Enter your own url prefixes: (End with \"END\")"); string URL = null; List <string> RecordedUrls = new List <string>(); while ((URL = Console.ReadLine().Trim()).ToUpper() != "END") { if (URL.ToUpper() == "UNDO") { RecordedUrls.RemoveAt(RecordedUrls.Count - 1); } if (!URL.EndsWith("/")) { URL += "/"; //Make sure that the listening url always ends with '/' } RecordedUrls.Add(URL); } GlobalConfiguration.SetListenPrefixes(Auth, RecordedUrls); Console.WriteLine("Done!"); } if (OperatorAuthentication.HasAdmin() is not true) { Console.WriteLine("Create an administrator:"); Console.WriteLine("User Name:"); string Name = Console.ReadLine(); bool isSucceed = false; while (isSucceed is not true) { Console.WriteLine("Enter password for the first time:"); var pw0 = ReadPassword(); Console.WriteLine("Please repeat your password:"******"Class1Admin", true); Auth = OperatorAuthentication.ObtainRTAuth(Name, pw0); Console.WriteLine("Succeed."); isSucceed = true; } else { Console.WriteLine("Password mismatch."); } } } }