Exemplo n.º 1
0
        private void Load(List <string> pathes)
        {
            if (CheckPC(pathes))
            {
            }
            else if (CheckAndroid(pathes))
            {
            }
            CheckMixed(pathes);

            if (PlatformStructure != null)
            {
                foreach (KeyValuePair <string, string> file in PlatformStructure.Files)
                {
                    if (m_knownFiles.Add(file.Key))
                    {
                        FileCollection.Load(file.Value);
                    }
                }
            }
            if (MixedStructure != null)
            {
                foreach (KeyValuePair <string, string> file in MixedStructure.Files)
                {
                    if (m_knownFiles.Add(file.Key))
                    {
                        FileCollection.Load(file.Value);
                    }
                }
            }
        }
Exemplo n.º 2
0
        public void Load(IEnumerable <string> pathes)
        {
            List <string> toProcess = new List <string>();

            toProcess.AddRange(pathes);
            if (CheckPC(toProcess))
            {
            }
            else if (CheckAndroid(toProcess))
            {
            }
            CheckMixed(toProcess);

            if (PlatformStructure != null)
            {
                foreach (string filePath in PlatformStructure.FetchFiles())
                {
                    string fileName = FileMultiStream.GetFileName(filePath);
                    if (m_knownFiles.Add(fileName))
                    {
                        FileCollection.Load(filePath);
                    }
                }
            }
            foreach (string filePath in MixedStructure.FetchFiles())
            {
                string fileName = FileMultiStream.GetFileName(filePath);
                if (m_knownFiles.Add(fileName))
                {
                    FileCollection.Load(filePath);
                }
            }
        }