public void Init(Media media) { SongMedia s = (media as SongMedia); if (s == null) throw new ArgumentException("media must be not null and a Song"); bool updating = this.song != null; // whether we are updating this.song = s; if (SwapTextAndTranslation) DoSwapTextAndTranslation(); Refresh(!updating); }
public SongIconProvider(SongMedia data) : base(data) { }