public Patient(string lastname, string name, string pesel, Address address, OddzialNFZ nfzDepartament, Uprawnienie uprawnienie) { Lastname = lastname; Name = name; PESEL = pesel; Address = address; Kod = nfzDepartament.Kod; Uprawnienie = uprawnienie.Kod; }
Patient setPatientDetails() { string name = textBox1.Text; string lastname = textBox2.Text; string pesel = textBox3.Text; string street = textBox4.Text; string buildingNo = textBox5.Text; string localNo = textBox6.Text; string city = textBox8.Text; string postalCode = textBox7.Text; OddzialNFZ oddzialNFZ = comboBox1.SelectedItem as OddzialNFZ; Uprawnienie uprawnienie = comboBox2.SelectedItem as Uprawnienie; Address adres = new Address(street, buildingNo, localNo, postalCode, city); Patient newPatient = new Patient(lastname, name, pesel, adres, oddzialNFZ, uprawnienie); return(newPatient); }
void getUprawnienia() { comboBox2.DataSource = Uprawnienie.getAll(); comboBox2.DisplayMember = "Kod"; }