Esempio n. 1
0
        private List <string> SeekForSourceFiles(BotPanel bot)
        {
            string botUniqName = GetBotUniqName(bot);

            if (_classPathCache.ContainsKey(botUniqName))
            {
                return(new List <string> {
                    _classPathCache[botUniqName]
                });
            }

            string className   = bot.GetType().Name;
            string fileName    = className + ".cs";
            string projectPath = Directory.GetParent(Environment.CurrentDirectory).Parent.FullName;

            return(IndicatorsFactory.GetFullNamesFromFolder(projectPath)
                   .Where(f => fileName.Equals(Path.GetFileName(f)))
                   .ToList());
        }