public MediaOrderItem(Media data) { if (data == null) throw new ArgumentNullException("data"); this.Data = data; this.iconProvider = Controller.IconProviders.CreateProvider(data); }
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"); }