상속: IDisposable
예제 #1
0
파일: Database.cs 프로젝트: mono/daap-sharp
        internal Database(Client client, ContentNode dbNode)
            : this()
        {
            this.client = client;

            Parse (dbNode);
        }
예제 #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
        }
예제 #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));
            }
        }