Пример #1
0
        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);
        }
Пример #2
0
 public SongIconProvider(SongMedia data)
     : base(data)
 {
 }