ArtOfWords.Models.FileSelector.RecentlyFileBoxModel.AddRecentlyUsedFile C# (CSharp) Method

AddRecentlyUsedFile() public method

最近使用したファイルのリストにファイルを追加する
public AddRecentlyUsedFile ( string path ) : void
path string ファイルのパス
return void
        public void AddRecentlyUsedFile(string path)
        {
            if (_recentlyUsedFiles.Contains(path))
            {
                _recentlyUsedFiles.Remove(path);
            }

            if (_recentlyUsedFiles.Count == 10)
            {
                _recentlyUsedFiles.RemoveAt(9);
            }

            _recentlyUsedFiles.Insert(0, path);
        }