Esempio n. 1
0
        public async Task LoadItems(List <MediaItem> items)
        {
            if (_saveTask != null)
            {
                _statusService.PostStatusMessage("Waiting for update operation to finish", true);
                await _saveTask;
                _statusService.ClearStatusMessage();
            }

            _items           = items;
            HasMultipleItems = (items.Count > 1);
            IsEmpty          = !items.Any();
            ItemCount        = items.Count;

            _initInProgress = true;
            InitializeFavorite();
            InitializePrivate();
            InitializeDateTaken();
            InitializeDateAdded();
            InitializeId();
            InitializeTagsViewModel(_repository.Tags);
            _initInProgress = false;
        }