added spacing for better readability of comments

This commit is contained in:
Strati 2018-08-07 19:41:58 +02:00
parent d45e9d0fbb
commit 21256ee411
6 changed files with 23 additions and 23 deletions

View File

@ -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<WpfWebClient.ServiceReferenceEHEC.Doctor> doctorlist = new List<ServiceReferenceEHEC.Doctor>(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<WpfWebClient.ServiceReferenceEHEC.Person> patientlist = new List<ServiceReferenceEHEC.Person>(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<WpfWebClient.ServiceReferenceEHEC.Strain> strainlist = new List<ServiceReferenceEHEC.Strain>(client.GetStrains());
//Display all strains with name in Combobox
// Display all strains with name in Combobox
ComboBoxStrains.ItemsSource = strainlist;
ComboBoxStrains.DisplayMemberPath = "Name";

View File

@ -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<WpfWebClient.ServiceReferenceEHEC.City> citylist = new List<ServiceReferenceEHEC.City>(client.GetCities());
//Display all cities with name in Combobox
// Display all cities with name in Combobox
ComboBoxFPCities.ItemsSource = citylist;
ComboBoxFPCities.DisplayMemberPath = "Name";
}

View File

@ -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];

View File

@ -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<WpfWebClient.ServiceReferenceEHEC.Salutation> salutationlist = new List<ServiceReferenceEHEC.Salutation>(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<WpfWebClient.ServiceReferenceEHEC.Gender> genderlist = new List<ServiceReferenceEHEC.Gender>(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<WpfWebClient.ServiceReferenceEHEC.City> citylist = new List<ServiceReferenceEHEC.City>(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<WpfWebClient.ServiceReferenceEHEC.Country> countrylist = new List<ServiceReferenceEHEC.Country>(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;

View File

@ -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<WpfWebClient.ServiceReferenceEHEC.Doctor> doctorlist = new List<ServiceReferenceEHEC.Doctor>(client.GetDoctors());

View File

@ -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<WpfWebClient.ServiceReferenceEHEC.Strain> strainlist = new List<ServiceReferenceEHEC.Strain>(client.GetStrains());