Esempio n. 1
0
 /// <summary>
 /// 初始化
 /// </summary>
 public override void Initialize()
 {
     if (this.EventAggregator == null)
     {
         throw new ArgumentNullException("EventAggregator");
     }
     //专辑点击事件,获取声音数据
     this.EventAggregator.GetEvent<SoundListEvent<AlbumData>>().Subscribe(e =>
     {
         this.Album = e;
     });
 }
 /// <summary>
 /// 初始化
 /// </summary>
 /// <param name="album"></param>
 /// <param name="regionName"></param>
 /// <param name="view"></param>
 public void DoInit(AlbumData album, string regionName, AlbumSoundsView view)
 {
     if (this.RegionManager != null)
     {
         this.RegionManager.AddToRegion(regionName, view);
         this.Params = new AlbumDetailParam
         {
             AlbumID = album.AlbumID
         };
         this.GetData(true);
     }
 }
 public SoundListViewModel()
 {
     if (this.EventAggregator == null)
     {
         throw new ArgumentNullException("EventAggregator");
     }
     //标签点击事件,获取声音数据
     this.EventAggregator.GetEvent<SoundListEvent<AlbumData>>().Subscribe(e =>
     {
         this.Album = e;
     });
 }