Exemplo n.º 1
0
        // Return Folder Names of Latest chapters, from Folder Path
        private string StringLatestChapters(string folderPath, int count)
        {
            int    cc       = count;
            string lastChap = "";

            foreach (string ss in GlobalVar.FolderNames(folderPath))
            {
                string folderName = Path.GetFileName(ss);
                lastChap += folderName.Replace('_', ':') + "\n";
                cc       -= 1;
                if (cc < 1)
                {
                    break;
                }
            }
            lastChap = lastChap.TrimEnd('\n');
            return(lastChap);
        }