Пример #1
0
        public void BackupSettings_GotFocus()
        {
            var numItems = _playerItemDao.GetNumItems();
            var numUnsynchronizedItems = _playerItemDao.GetNumUnsynchronizedItems();
            var numSynchronized        = numItems - numUnsynchronizedItems;

            UpdateInformativeLabel(numItems, numSynchronized, numUnsynchronizedItems);
        }
Пример #2
0
        private string GetUploadPartition()
        {
            var currentPartition = _settings.GetPersistent().AzureUploadPartition;
            var numItems         = _playerItemDao.GetNumItems(currentPartition);

            if (numItems > 100 || string.IsNullOrEmpty(currentPartition))
            {
                _settings.GetPersistent().AzureUploadPartition = Guid.NewGuid().ToString().Replace("-", "");
            }

            return(_settings.GetPersistent().AzureUploadPartition);
        }
Пример #3
0
 public long GetNumItems(string backupPartition)
 {
     return(ThreadExecuter.Execute(
                () => _repo.GetNumItems()
                ));
 }