Exemple #1
0
        public static void GetLibrary()
        {
            ITDETECTORLib.iTunesDetector iDetect = new ITDETECTORLib.iTunesDetector();
            if (iDetect.IsiTunesAvailable)
            {
                Controller.ShowMessage("Initializing iTunes...");

                Cancel = false;
                Busy   = true;

                Clock.DoOnNewThread(getLibrary, 200);
            }
            else
            {
                ShowError();
            }
        }
Exemple #2
0
        public static void CreatePlaylist(string Name, List <Track> Tracks)
        {
            ITDETECTORLib.iTunesDetector iDetect = new ITDETECTORLib.iTunesDetector();
            if (iDetect.IsiTunesAvailable)
            {
                Controller.ShowMessage("Initializing iTunes...");

                Cancel = false;
                Busy   = true;

                playlistName = Name;
                tracks       = Tracks.ToList();
                Clock.DoOnNewThread(createPlaylist, 200);
            }
            else
            {
                ShowError();
            }
        }