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

            this.OnPropertyChanged(vm => vm.SelectableYoutubeSongs);
        }
Esempio 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);
        }
Esempio n. 3
0
        public void OrderLocalSongsByTitle()
        {
            this.localSongOrderFunc = SortHelpers.GetOrderByTitle <Song>(this.currentLocalSongTitleOrder);
            SortHelpers.InverseOrder(ref this.currentLocalSongTitleOrder);

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