public void AddToRecent(string filename)
{
if (this.RecentlyOpened.Contains(filename))
this.RecentlyOpened.Remove(filename);
this.RecentlyOpened.Insert(0, filename);
if (this.RecentlyOpened.Count > this.MaxRecent)
this.RecentlyOpened.RemoveRange(this.MaxRecent - 1, this.RecentlyOpened.Count - this.MaxRecent);
}