Пример #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public MainWindowViewModel()
        {
            API = new SpotifyAPI.SpotifyAPI();
            API.InitApi();

            Artist = new BaseModel("BlockedArtists");
            Song   = new BaseModel("BlockedSongs");

            Artist.Name = API.SongInfo.ArtistName;
            Song.Name   = API.SongInfo.SongName;

            Timer timer = new Timer {
                Interval = 1000
            };

            timer.Elapsed += new ElapsedEventHandler(TimerEvent);
            timer.Start();
        }
Пример #2
0
 public SongInfoBase()
 {
     API = new SpotifyAPI.SpotifyAPI();
     API.InitApi();
 }