Beispiel #1
0
        public List <RecentProjectViewModel> CreateProjectViewModels()
        {
            var result = _applicationSettingsService.GetRecentProjectStringCollection();


            return(result.Select(s =>
                                 new RecentProjectViewModel($"{Path.GetFileNameWithoutExtension(s)} ({Path.GetDirectoryName(s)})", s))
                   .ToList());
        }
Beispiel #2
0
        public async void LoadDefaultProject()
        {
            var projectPath = _applicationSettingsService.GetRecentProjectStringCollection().FirstOrDefault();

            if (projectPath != null)
            {
                await LoadProject(projectPath);
            }
        }