public RecentProjectViewModel GetViewModel(RecentProject ProjectRecord)
 {
     return new RecentProjectViewModel(Path.GetFileName(ProjectRecord.FileName),
                                       Path.GetDirectoryName(ProjectRecord.FileName),
                                       ProjectRecord.FileName,
                                       String.Format("{0}.{1}", ProjectRecord.MajorVersion, ProjectRecord.MinorVersion),
                                       _eventAggregator, _loadProjectService);
 }
        public void UpdateRecentProject(RecentProject Record)
        {
            if (Settings.Default.LastProjects == null)
                Settings.Default.LastProjects = new RecentProjectsList();
            Settings.Default.LastProjects.RemoveAll(p => p.FileName == Record.FileName);
            Settings.Default.LastProjects.Insert(0, Record);
            CleanUp();

            Settings.Default.Save();
        }