예제 #1
0
        public MediaOrderItem(Media data)
        {
            if (data == null)
                throw new ArgumentNullException("data");
            this.Data = data;

            this.iconProvider = Controller.IconProviders.CreateProvider(data);
        }
예제 #2
0
 public void ReloadMetadata()
 {
     var newData = MediaManager.ReloadMediaMetadata(Data);
     if (newData != Data)
     {
         Data = newData;
         iconProvider = Controller.IconProviders.CreateProvider(newData);
     }
     else
     {
         iconProvider.Invalidate();
     }
     OnPropertyChanged("Title");
     OnPropertyChanged("Path");
     OnPropertyChanged("Icon");
     OnPropertyChanged("IsActivatable");
 }