Fixed errors.

This commit is contained in:
Yorick Rommers
2015-10-15 13:50:52 +02:00
parent ac23302e81
commit f643ff2967
4 changed files with 15 additions and 5 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApplication2;
namespace MusicPlayer namespace MusicPlayer
{ {
@@ -16,8 +16,8 @@ namespace MusicPlayer
public Form1() public Form1()
{ {
InitializeComponent(); InitializeComponent();
NetworkHandler nw = new NetworkHandler("83.128.250.123"); APIHandler api = new APIHandler();
NetworkHandler nw = new NetworkHandler("83.128.250.123", api);
} }
} }
@@ -33,6 +33,10 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
@@ -46,7 +50,9 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Album.cs" />
<Compile Include="APIHandler.cs" /> <Compile Include="APIHandler.cs" />
<Compile Include="Artist.cs" />
<Compile Include="Form1.cs"> <Compile Include="Form1.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -56,6 +62,9 @@
<Compile Include="NetworkHandler.cs" /> <Compile Include="NetworkHandler.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>
@@ -65,6 +74,7 @@
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
</Compile> </Compile>
<None Include="packages.config" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput> <LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -1,6 +1,7 @@
using System; using System;
using System.Text; using System.Text;
using System.Net.Sockets; using System.Net.Sockets;
using System.Threading;
namespace MusicPlayer namespace MusicPlayer
{ {
@@ -15,6 +16,7 @@ namespace MusicPlayer
s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
s.Connect(ip, port); s.Connect(ip, port);
api = apihandler; api = apihandler;
SendString("GET");
} }
public void SendString(string m) public void SendString(string m)
-2
View File
@@ -17,8 +17,6 @@ namespace MusicPlayer
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1()); Application.Run(new Form1());
APIHandler a = new APIHandler;
NetworkHandler nw = new NetworkHandler("imegumii.nl", a);
} }
} }
} }