예제 #1
0
        public void AppDebugCmd(string[] cmd, uint size)
        {
            string cmd0 = cmd[0];

            switch (cmd0)
            {
            case "test": Log("app test success!"); break;

            case "gc": GC.Collect(); break;

            case "?":
            case "help":
                LogText("app debug commands help: \n" +
                        "exit Save exit application" +
                        "reboot Reboot application" +
                        "stat Show app run stats" +
                        "procs MainPageProcess debug (?)" +
                        "lg LanuageMgr debug (?)" +
                        "settings SettingsMgr debug (?)");
                break;

            case "sets": MainSettings.DebugCmd(cmd, size); break;

            case "procs": mainPageProcess.DebugCmd(cmd, size); break;

            case "lg": LanuageMgr.DebugCmd(cmd, size); break;

            default: LogWarn("Not found command : " + cmd0); break;
            }
        }