Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
            }
        }