public void OnMostRecentFilesChanged(MostRecentFilesChangedEventArgs e)
 {
     var handler = MostRecentFilesChanged;
     if (handler != null)
     {
         handler(this, e);
     }
 }
示例#2
0
        public void OnMostRecentFilesChanged(MostRecentFilesChangedEventArgs e)
        {
            var handler = MostRecentFilesChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 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();
 }