예제 #1
0
        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());
        }
예제 #2
0
 void MostRecentFilesServiceFilesChanged(object sender, MostRecentFilesChangedEventArgs e)
 {
     UpdateName();
 }