Exemple #1
0
 public StartUpViewModel()
 {
     InitCommands();
     _recentFileRepository = new RecentFileRepository();
     var temp = _recentFileRepository.GetRecentFiles();
     RecentFiles = new ObservableCollection<RecentFileViewModel>();
     foreach (FileInfo f in temp)
     {
         var v = new RecentFileViewModel(f);
         RecentFiles.Add(v);
     }
 }
Exemple #2
0
        public StartUpViewModel()
        {
            InitCommands();
            _recentFileRepository = new RecentFileRepository();
            var temp = _recentFileRepository.GetRecentFiles();

            RecentFiles = new ObservableCollection <RecentFileViewModel>();
            foreach (FileInfo f in temp)
            {
                var v = new RecentFileViewModel(f);
                RecentFiles.Add(v);
            }
        }