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 }); } }
public List <string> GetRecentFiles() { return(ConfigFileManager.RecentFiles()); }