Пример #1
0
 private void RefreshRecentFiles(string fileName = null)
 {
     if (fileName != null)
     {
         ApplicationSettings.AddRecentFile(fileName);
         ApplicationSettings.Save();
     }
     openRecentToolStripMenuItem.DropDownItems.Clear();
     openRecentToolStripMenuItem.DropDownItems.AddRange(GetRecentFilesMenuItems().ToArray());
 }