Inheritance: IDisposable
Esempio n. 1
0
        internal Database(Client client, ContentNode dbNode)
            : this()
        {
            this.client = client;

            Parse (dbNode);
        }
Esempio n. 2
0
        public ITunesMediaLibrary(LibraryInfo info)
        {
            this._info = info;

            this._client = new Client(info.Location, 3689);
            this._client.Login();

            _tempFilename = Path.GetTempFileName();
            File.Delete(_tempFilename); // previous method actually creates the file
        }
Esempio n. 3
0
        private void LoadService(Service service)
        {
            songList.Items.Clear();

            Client client = new Client(service);
            client.Login();

            foreach (Song song in client.Databases[0].Songs)
            {
                songList.Items.Add (String.Format ("{0} - {1} - {2}",
                    song.Artist, song.Album, song.Title));
            }
        }