コード例 #1
0
ファイル: Settings.cs プロジェクト: DD31415/Type-Viewer
    public void AddRecentAssembly(string path)
    {
        if (RecentAssemblyList.Contains(path) == false)
        {
            if (RecentAssemblyList.Count == this.MaxRecentFiles)
            {
                RecentAssemblyList.RemoveAt(RecentAssemblyList.Count - 1);
            }
            RecentAssemblyList.Insert(0, path);
        }
        else
        {
            if (RecentAssemblyList.Count == this.MaxRecentFiles)
            {
                RecentAssemblyList.RemoveAt(RecentAssemblyList.Count - 1);
            }

            RecentAssemblyList.Remove(path);
            RecentAssemblyList.Insert(0, path);
        }
        this.Save();
    }
コード例 #2
0
ファイル: Settings.cs プロジェクト: DD31415/Type-Viewer
 public void ClearRecentAssemblies()
 {
     RecentAssemblyList.Clear();
     this.Save();
 }