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);
        }
Example #2
0
 public SongIconProvider(SongMedia data)
     : base(data)
 {
 }