예제 #1
0
        public static ConsoleCommands GetInstance()
        {
            if (instance == null)
            {
                instance = new ConsoleCommands();
            }

            return(instance);
        }
예제 #2
0
        public override void Execute(string[] args)
        {
            CConsole c = CConsole.GetInstance();

            if (console != null)
            {
                if (console.list != null)
                {
                    c.Log(" ");
                    c.Log("Доступные команды:");
                    ConsoleCommands.GetInstance().Commands.ForEach(command => c.Log(command.Signature));
                }
                else
                {
                    c.LogError("Не найден ListView!");
                }
            }
            else
            {
                c.LogError("Консоль не найдена!");
            }
        }