private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { StoreViewsLayout(UserLayoutFileName); AppSettings.SaveSettings(settings => { settings.RecentFilesList = new StringCollection(); settings.RecentFilesList.AddRange(m_recentMenu.GetFiles()); }); }
private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { StoreViewsLayout(UserLayoutFileName); Properties.Settings.Default.RecentFilesList = new StringCollection(); Properties.Settings.Default.RecentFilesList.AddRange(m_recentMenu.GetFiles()); Properties.Settings.Default.Save(); SimulationHandler.Finish(); }