Пример #1
0
        private async Task LoadDataAsync()
        {
            var list = await videoLibrary.GetVideoItemsAsync(Directory, false);

            VideoItems.Clear();
            VideoItems.AddRange(list.OrderBy(e => e.Title));
        }
Пример #2
0
        protected override async Task InitializeVMAsync(CancellationToken token)
        {
            App.DebugLog("");

            var list = await videoLibrary.GetVideoItemsAsync(Directory, false);

            VideoItems.Clear();
            if (backToTrimmer)
            {
                VideoItems.AddRange(list.OrderBy(e => e.Directory).ThenBy(e => e.FileName));
            }
            else
            {
                VideoItems.AddRange(list.OrderBy(e => e.Title));
            }
        }