private void RefreshRecentFiles(string fileName = null) { if (fileName != null) { ApplicationSettings.AddRecentFile(fileName); ApplicationSettings.Save(); } openRecentToolStripMenuItem.DropDownItems.Clear(); openRecentToolStripMenuItem.DropDownItems.AddRange(GetRecentFilesMenuItems().ToArray()); }