static void mostRecentFilesService_MostRecentFilesChanged(object sender, MostRecentFilesChangedEventArgs e) { var services = ApplicationServices.Instance; var mostRecentFilesService = services.Resolve <IMostRecentFilesService>(); if (services.Settings.MostRecentFiles == null) { services.Settings.MostRecentFiles = new StringCollection(); } else { services.Settings.MostRecentFiles.Clear(); } services.Settings.MostRecentFiles.AddRange(mostRecentFilesService.Filenames.ToArray()); }
void MostRecentFilesServiceFilesChanged(object sender, MostRecentFilesChangedEventArgs e) { UpdateName(); }