From 21256ee41132412c9b5166f9f64fb9a9135f3907 Mon Sep 17 00:00:00 2001 From: Strati Date: Tue, 7 Aug 2018 19:41:58 +0200 Subject: [PATCH] added spacing for better readability of comments --- WebClient/WpfWebClient/ExamForm.xaml.cs | 12 +++++----- WebClient/WpfWebClient/FoodplaceForm.xaml.cs | 4 ++-- WebClient/WpfWebClient/Home.xaml.cs | 2 +- WebClient/WpfWebClient/PatientForm.xaml.cs | 24 ++++++++++---------- WebClient/WpfWebClient/ViewDoctors.xaml.cs | 2 +- WebClient/WpfWebClient/ViewStrains.xaml.cs | 2 +- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/WebClient/WpfWebClient/ExamForm.xaml.cs b/WebClient/WpfWebClient/ExamForm.xaml.cs index 0a833a0..dbb300d 100644 --- a/WebClient/WpfWebClient/ExamForm.xaml.cs +++ b/WebClient/WpfWebClient/ExamForm.xaml.cs @@ -27,24 +27,24 @@ namespace WpfWebClient WpfWebClient.ServiceReferenceEHEC.ServiceClient client = new WpfWebClient.ServiceReferenceEHEC.ServiceClient(); - //Retrieve all doctors and save them into "doctorlist" + // Retrieve all doctors and save them into "doctorlist" List doctorlist = new List(client.GetDoctors()); - //Display all doctors with name in Combobox + // Display all doctors with name in Combobox ComboBoxDoctors.ItemsSource = doctorlist; ComboBoxDoctors.DisplayMemberPath = "FirstName"; - //Retrieve all patients and save them into "patientlist" + // Retrieve all patients and save them into "patientlist" List patientlist = new List(client.GetPersons()); - //Display all patients with name in Combobox + // Display all patients with name in Combobox ComboBoxPatients.ItemsSource = patientlist; ComboBoxPatients.DisplayMemberPath = "FirstName"; - //Retrieve all strains and save them into "strainlist" + // Retrieve all strains and save them into "strainlist" List strainlist = new List(client.GetStrains()); - //Display all strains with name in Combobox + // Display all strains with name in Combobox ComboBoxStrains.ItemsSource = strainlist; ComboBoxStrains.DisplayMemberPath = "Name"; diff --git a/WebClient/WpfWebClient/FoodplaceForm.xaml.cs b/WebClient/WpfWebClient/FoodplaceForm.xaml.cs index ee3cb8d..623b4c1 100644 --- a/WebClient/WpfWebClient/FoodplaceForm.xaml.cs +++ b/WebClient/WpfWebClient/FoodplaceForm.xaml.cs @@ -27,10 +27,10 @@ namespace WpfWebClient WpfWebClient.ServiceReferenceEHEC.ServiceClient client = new WpfWebClient.ServiceReferenceEHEC.ServiceClient(); - //Retrieve all cities and save them into "citylist" + // Retrieve all cities and save them into "citylist" List citylist = new List(client.GetCities()); - //Display all cities with name in Combobox + // Display all cities with name in Combobox ComboBoxFPCities.ItemsSource = citylist; ComboBoxFPCities.DisplayMemberPath = "Name"; } diff --git a/WebClient/WpfWebClient/Home.xaml.cs b/WebClient/WpfWebClient/Home.xaml.cs index a1886f7..b144c92 100644 --- a/WebClient/WpfWebClient/Home.xaml.cs +++ b/WebClient/WpfWebClient/Home.xaml.cs @@ -52,7 +52,7 @@ namespace WpfWebClient { // Pick a random number between 0 and 25 // to select a letter from the letters array. - int letter_num = rand.Next(0, letters.Length - 1); + int letter_num = rand.Next(2, letters.Length - 1); // Append the letter. word += letters[letter_num]; diff --git a/WebClient/WpfWebClient/PatientForm.xaml.cs b/WebClient/WpfWebClient/PatientForm.xaml.cs index fe9d6c0..8b40dec 100644 --- a/WebClient/WpfWebClient/PatientForm.xaml.cs +++ b/WebClient/WpfWebClient/PatientForm.xaml.cs @@ -27,31 +27,31 @@ namespace WpfWebClient WpfWebClient.ServiceReferenceEHEC.ServiceClient client = new WpfWebClient.ServiceReferenceEHEC.ServiceClient(); - //Retrieve all salutations and save them into "salutationlist" + // Retrieve all salutations and save them into "salutationlist" List salutationlist = new List(client.GetSalutations()); - //Display all salutations with name in Combobox + // Display all salutations with name in Combobox ComboBoxSalutations.ItemsSource = salutationlist; ComboBoxSalutations.DisplayMemberPath = "Name"; - //Retrieve all genders and save them into "genderlist" + // Retrieve all genders and save them into "genderlist" List genderlist = new List(client.GetGenders()); - //Display all genders with name in Combobox + // Display all genders with name in Combobox ComboBoxGenders.ItemsSource = genderlist; ComboBoxGenders.DisplayMemberPath = "Name"; - //Retrieve all cities and save them into "citylist" + // Retrieve all cities and save them into "citylist" List citylist = new List(client.GetCities()); - //Display all cities with name in Combobox + // Display all cities with name in Combobox ComboBoxCities.ItemsSource = citylist; ComboBoxCities.DisplayMemberPath = "Name"; - //Retrieve all salutations and save them into "countrylist" + // Retrieve all salutations and save them into "countrylist" List countrylist = new List(client.GetCountries()); - //Display all countries with name in Combobox + // Display all countries with name in Combobox ComboBoxCountries.ItemsSource = countrylist; ComboBoxCountries.DisplayMemberPath = "Name"; @@ -68,11 +68,11 @@ namespace WpfWebClient Person p = new Person(); - //if (ComboBoxSalutations.SelectedValue != null && ComboBoxSalutations.SelectedValue is Salutation) - //if (ComboBoxGenders.SelectedValue != null && ComboBoxGenders.SelectedValue is Gender) - //if (ComboBoxCities.SelectedValue != null && ComboBoxCities.SelectedValue is City) + // if (ComboBoxSalutations.SelectedValue != null && ComboBoxSalutations.SelectedValue is Salutation) + // if (ComboBoxGenders.SelectedValue != null && ComboBoxGenders.SelectedValue is Gender) + // if (ComboBoxCities.SelectedValue != null && ComboBoxCities.SelectedValue is City) - //Pick all selected fields and send object to client + // Pick all selected fields and send object to client p.Salutation = (Salutation)ComboBoxSalutations.SelectedValue; p.Gender = (Gender)ComboBoxGenders.SelectedValue; p.LastName = txtLastName.Text; diff --git a/WebClient/WpfWebClient/ViewDoctors.xaml.cs b/WebClient/WpfWebClient/ViewDoctors.xaml.cs index c11ca2e..0799e1c 100644 --- a/WebClient/WpfWebClient/ViewDoctors.xaml.cs +++ b/WebClient/WpfWebClient/ViewDoctors.xaml.cs @@ -28,7 +28,7 @@ namespace WpfWebClient WpfWebClient.ServiceReferenceEHEC.ServiceClient client = new WpfWebClient.ServiceReferenceEHEC.ServiceClient(); - //call method GetDoctors and save them to doctorlist + // call method GetDoctors and save them to doctorlist List doctorlist = new List(client.GetDoctors()); diff --git a/WebClient/WpfWebClient/ViewStrains.xaml.cs b/WebClient/WpfWebClient/ViewStrains.xaml.cs index a33ed5b..2222058 100644 --- a/WebClient/WpfWebClient/ViewStrains.xaml.cs +++ b/WebClient/WpfWebClient/ViewStrains.xaml.cs @@ -27,7 +27,7 @@ namespace WpfWebClient WpfWebClient.ServiceReferenceEHEC.ServiceClient client = new WpfWebClient.ServiceReferenceEHEC.ServiceClient(); - //call method GetStrains and save them to strainlist + // call method GetStrains and save them to strainlist List strainlist = new List(client.GetStrains());