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; } }