static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); NetworkHandler nw = new NetworkHandler("http://www.imegumii.nl"); APIHandler api = new APIHandler(nw); // api.GetSongsByArtist("Amon Amarth").ForEach(s => // { // Console.WriteLine(s.SongID); // }); // api.GetSongsByYear("2009").ForEach(s => // { // Console.WriteLine(s.Name); // }); api.GetSongsByGenre("Melodic Death Metal").ForEach(s => { Console.WriteLine(s.Name); }); // api.GetSongsByAlbum("Stronger").ForEach(s => // { // Console.WriteLine(s.Name); // }); MainForm form = new MainForm(); new Main(nw, api, form); Application.Run(form); }
public Song(string songid, string name, string album, string artist, APIHandler api) { SongID = songid; Name = name; Album = album; Artist = artist; this.api = api; url = ""; }
public Main(NetworkHandler nw, APIHandler api, MainForm form) { this.nw = nw; this.api = api; this.form = form; form.main = this; audio = new AudioHandler(); table = new SongsTable(); form.SongsTableView.DataSource = table; Populate(); }