private void buttonChange_Click(object sender, EventArgs e)
 {
     if (listViewVisits.SelectedItems.Count > 0) {
         foreach(VisitData visit in visits){
             if (visit.Id == Int64.Parse(listViewVisits.SelectedItems[0].Text)){
                 VisitChangeEventArgs e2 = new VisitChangeEventArgs(visit);
                 Change(this, e2);
             }
         }
     }
 }
 private void visitControl_VisitChange(object sender, VisitChangeEventArgs e)
 {
     this.Clear(patientSearchControl);
     this.activatePatientSearchControl(currentPatient);
     this.newVisit.Location = getPatientSearchSubMaskLocation();
     this.newVisit.CurrentPatient = currentPatient;
     this.newVisit.Init(e.Visit);
     this.Controls.Add(this.newVisit);
 }