Exemplo n.º 1
0
        public void OrderYoutubeSongsByTitle()
        {
            this.youtubeSongOrderFunc = SortHelpers.GetOrderByTitle <YoutubeSong>(this.currentYoutubeSongTitleOrder);
            SortHelpers.InverseOrder(ref this.currentYoutubeSongTitleOrder);

            this.OnPropertyChanged(vm => vm.SelectableYoutubeSongs);
        }
Exemplo n.º 2
0
        protected void ApplyOrder(Func <SortOrder, Func <IEnumerable <T>, IOrderedEnumerable <T> > > orderFunc, ref SortOrder sortOrder)
        {
            this.SongOrderFunc = orderFunc(sortOrder);
            SortHelpers.InverseOrder(ref sortOrder);

            this.SelectableSongs = this.SongOrderFunc(this.SelectableSongs);
        }
Exemplo n.º 3
0
        public void OrderLocalSongsByTitle()
        {
            this.localSongOrderFunc = SortHelpers.GetOrderByTitle <Song>(this.currentLocalSongTitleOrder);
            SortHelpers.InverseOrder(ref this.currentLocalSongTitleOrder);

            this.OnPropertyChanged(vm => vm.SelectableLocalSongs);
        }