private void fillPatient() { nameText.Text = thisP.getName(); surnameText.Text = thisP.getSurname(); dateText.Text = thisP.getDate(); sexText.Text = thisP.getSex(); }
private void fillCommons() { if (thisP != null)//if the patient is already existent { String thisName = thisP.getName(); nameText.Text = thisName; String thisSurname = thisP.getSurname(); surnameText.Text = thisSurname; String thisDate = thisP.getDate(); dateText.Text = thisDate; String thisSex = thisP.getSex(); sexText.Text = thisSex; String thisNotes = thisP.getNotes(); notesText.Text = thisNotes; } }