Exemplo n.º 1
0
 public void Load()
 {
     Console.SetValue("Debugging_Level", new ConsoleVarable()
     {
         ValidCheck = CheckConsoleInput, Value = "0"
     });
 }
Exemplo n.º 2
0
        /// <summary>
        /// Relays Sync errors to the remote server and disconnects from the server. 3 levels of data are supplied and one is chosen based on the current debugging level.
        /// </summary>
        /// <param name="Sender">Network connection reference</param>
        /// <param name="ErrorLog0">Debugging Data used when Debugging is set to 0</param>
        /// <param name="ErrorLog1">Debugging Data used when Debugging is set to 1</param>
        /// <param name="ErrorLog2">Debugging Data used when Debugging is set to 2</param>
        public static void SyncError(Connection Sender, Dictionary <String, Object> ErrorLog0, Dictionary <String, Object> ErrorLog1, Dictionary <String, Object> ErrorLog2)
        {
            string level = Console.GetValue("Debugging_Level").Value;

            switch (level)
            {
            default:
            case "0":
                Sender.SyncError(ErrorLog0);
                break;

            case "1":
                Sender.SyncError(ErrorLog1);
                break;

            case "2":
                Sender.SyncError(ErrorLog2);
                break;
            }
        }