Beispiel #1
0
 internal void ToLeft()
 {
     List1Checked.Clear();
     list2Status = Status.UnChecked;
     list1Status = Status.UnChecked;
     List1.AddRange(List2Checked);
     List2.RemoveAll(List2Checked.Contains);
     List2Checked.Clear();
     RequireRender = true;
     SyncFieldValue(true);
 }
Beispiel #2
0
        public virtual void Generate()
        {
            Playlist List1;
            Playlist List2;
            Playlist List3;

            List1 = this.CreatePlayList("http://ws.audioscrobbler.com/1.0/user/" + this._UserName + "/toptracks.xml", this.TopTracks, this.TopTracksMixed, "TopTracks");
            List2 = this.CreatePlayList("http://ws.audioscrobbler.com/1.0/user/" + this._UserName + "/recentlovedtracks.xml", this.RecentLovedTracks, this.RecentLovedTracksMixed, "RecentLovedTracks");
            List3 = this.CreatePlayList("http://ws.audioscrobbler.com/1.0/user/" + this._UserName + "/weeklytrackchart.xml", this.WeeklyTrackChart, this.WeeklyTrackChartMixed, "WeeklyTrackChart");

            List1.AddRange(List2);
            List1.AddRange(List3);
            List1.Randomize();
            this.SavePlayList(List1, "Mixed");
        }
Beispiel #3
0
        private void ResetList2(object value)
        {
            var valueList = (List <string>)value;

            List1.AddRange(List2);
            if (valueList == null)
            {
                List2.Clear();
            }
            else
            {
                List2 = List1.Where(x => valueList.Contains(x.Id)).ToList();
                List1.RemoveAll(List2.Contains);
            }
            List1Status   = Status.UnChecked;
            List2Status   = Status.UnChecked;
            RequireRender = true;
        }