public void OpenRecentFile(string fileName, Encoding enc = null) { var file = bufferManager.EnumerateRecent() .FirstOrDefault(b => b.FullName.IndexOf(fileName, StringComparison.OrdinalIgnoreCase) != -1); OpenFile(file, enc); }
public IEnumerable <ValueItem> EnumerateArgumentValues() { return(bufferManager.EnumerateRecent() .Select(b => new ValueItem(b.Name, b.DirectoryName))); }