Changed Structure

This commit is contained in:
2015-10-29 20:55:36 +01:00
parent 9108f17acc
commit f79b2ace28
3 changed files with 35 additions and 3 deletions
+29
View File
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MusicPlayer
{
class Main
{
private APIHandler api;
private MainForm form;
private NetworkHandler nw;
private AudioHandler audio;
public Main(NetworkHandler nw, APIHandler api, MainForm form)
{
this.nw = nw;
this.api = api;
this.form = form;
audio = new AudioHandler();
Console.WriteLine(api.GetSongURLByID("102"));
}
}
}
+1 -1
View File
@@ -183,7 +183,7 @@
this.Controls.Add(this.MenuStrip);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.MenuStrip;
this.MinimumSize = new System.Drawing.Size(800, 400);
this.MinimumSize = new System.Drawing.Size(800, 500);
this.Name = "MainForm";
this.Text = "YJMPD Music Player";
((System.ComponentModel.ISupportInitialize)(this.SongsTableView)).EndInit();
+5 -2
View File
@@ -16,10 +16,13 @@ namespace MusicPlayer
{
NetworkHandler nw = new NetworkHandler("http://www.imegumii.nl");
APIHandler api = new APIHandler(nw);
Console.WriteLine(api.GetSongURLByID("102"));
MainForm form = new MainForm();
new Main(nw, api, form);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
Application.Run(form);
}
}
}