Esempio n. 1
0
        public async Task LoadCurrentlyShownElementsAsync()
        {
            if (CurrentlyShownElements == null)
            {
                return;
            }

            CurrentlyShownElements.Clear();

            if (CurrentlyOpenedElement == null)
            {
                var libraries = await LibraryRepository.GetAllAsync();

                foreach (IExplorableElement t in libraries)
                {
                    CurrentlyShownElements.Add(t);
                }
            }
            else if (CurrentlyOpenedElement is Library)
            {
                if (CurrentlyOpenedElement.Origin == Origin.Local)
                {
                    foreach (var t in (CurrentlyOpenedElement as Library).Images)
                    {
                        CurrentlyShownElements.Add(t);
                    }
                }

                //TODO: Add icons to imageFiles from diffrent origins than local
            }
        }