Exemplo n.º 1
0
        private void InitRecentList()
        {
            RecFileslist.Clear();
            foreach (var item in ConfigFileManager.RecentFiles())
            {
                string name;
                string path  = item;
                int    index = item.LastIndexOf("\\");

                if (index > 0)
                {
                    name = item.Substring(index + 1, item.Length - index - 1);
                }
                else
                {
                    name = item;
                }
                RecFileslist.Add(new RecentFile()
                {
                    FileName = name, FilePath = path
                });
            }
        }
Exemplo n.º 2
0
 public List <string> GetRecentFiles()
 {
     return(ConfigFileManager.RecentFiles());
 }