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(); } }
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(); } }