Added add user (for doctor)

This commit is contained in:
Aareschluchtje
2015-10-09 11:00:27 +02:00
parent 5e0a0b25eb
commit 7b5f4d811f
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -43,6 +43,9 @@ namespace ErgometerServer
case NetCommand.CommandType.VALUESET:
server.SendToClient(input);
break;
case NetCommand.CommandType.USER:
server.AddUser(input.users);
break;
default:
throw new FormatException("Unknown Command");
}
+1 -1
View File
@@ -35,7 +35,7 @@
<ItemGroup>
<Reference Include="ErgometerLibrary, Version=1.0.2.2, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\ErgometerLibrary\ErgometerLibrary\ErgometerLibrary\bin\Debug\ErgometerLibrary.dll</HintPath>
<HintPath>..\..\ErgometerLibrary\ErgometerLibrary\bin\Debug\ErgometerLibrary.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
+1 -1
View File
@@ -114,7 +114,7 @@ namespace ErgometerServer
FileHandler.SaveUsers(users);
}
private void AddUser(Dictionary<string, string> users)
public void AddUser(Dictionary<string, string> users)
{
foreach(KeyValuePair<string, string> user in users)
{