Esempio n. 1
0
 public void InitializeProgressBar(int total)
 {
     _dispatchService.CheckBeginInvokeOnUi(() =>
     {
         ShowProgress   = true;
         ActiveProgress = 0;
         MaxProgress    = total;
     });
 }
Esempio n. 2
0
 private void EnsureInitialized()
 {
     lock (this)
     {
         if (_folders == null)
         {
             _folders = _folderRepository.GetAllLazy();
             _entries = _entryRepository.GetAllLazy();
             AddEntries(_entries.ToList());
             _entries.CollectionChanged += (s, e) => _dispatchService.CheckBeginInvokeOnUi(() => EntriesOnCollectionChanged(e));
             AddFolders(_folders.ToList());
             _folders.CollectionChanged += (s, e) => _dispatchService.CheckBeginInvokeOnUi(() => FoldersOnCollectionChanged(e));
         }
     }
 }