diff --git a/WebClient/WpfWebClient/App.config b/WebClient/WpfWebClient/App.config index bd946c2..39ddb92 100644 --- a/WebClient/WpfWebClient/App.config +++ b/WebClient/WpfWebClient/App.config @@ -6,7 +6,7 @@ - + diff --git a/WebClient/WpfWebClient/Connected Services/ServiceReferenceEHEC/Reference.svcmap b/WebClient/WpfWebClient/Connected Services/ServiceReferenceEHEC/Reference.svcmap index bad882e..eddd7d5 100644 --- a/WebClient/WpfWebClient/Connected Services/ServiceReferenceEHEC/Reference.svcmap +++ b/WebClient/WpfWebClient/Connected Services/ServiceReferenceEHEC/Reference.svcmap @@ -1,5 +1,5 @@ - + false true @@ -22,11 +22,11 @@ - - - - - + + + + + diff --git a/WebClient/WpfWebClient/Helper/GenerateTestData.cs b/WebClient/WpfWebClient/Helper/GenerateTestData.cs index 1d2d193..b095fea 100644 --- a/WebClient/WpfWebClient/Helper/GenerateTestData.cs +++ b/WebClient/WpfWebClient/Helper/GenerateTestData.cs @@ -95,9 +95,15 @@ namespace WpfWebClient.Helper do { - patf.FoodPlace = (FoodPlace)foodPlaces.OrderBy(x => random.Next()).Take(1); - patf.Patient = (Person)patients.OrderBy(x => random.Next()).Take(1); - patf.PatientID = i; + int randnumFP = random.Next(0, foodPlaces.Count()); + FoodPlace foodpl = foodPlaces[randnumFP]; + + int randnumP = random.Next(0, patients.Count()); + Person patient = patients[randnumP]; + + patf.FoodPlace = foodpl; + patf.Patient = patient; + //patf.PatientID = i; patf.VistingDate = new DateTime(2005, 12, 20); PatientsAtFoodPlaces.Add(patf); diff --git a/WebClient/WpfWebClient/WpfWebClient.csproj b/WebClient/WpfWebClient/WpfWebClient.csproj index d804d43..d299a22 100644 --- a/WebClient/WpfWebClient/WpfWebClient.csproj +++ b/WebClient/WpfWebClient/WpfWebClient.csproj @@ -56,6 +56,11 @@ MSBuild:Compile Designer + + True + True + Reference.svcmap + ExamForm.xaml @@ -94,11 +99,6 @@ App.xaml Code - - True - True - Reference.svcmap - MainWindow.xaml Code @@ -186,6 +186,9 @@ + + + @@ -204,8 +207,5 @@ Reference.cs - - - \ No newline at end of file