public VoiceInfoAutomat(List<string> patientenNameList, List<long> patientIDList)
 {
     state = State.init;
     this.patientenNameList = patientenNameList;
     this.currentPatient = null;
     patientComponent = new PatientDocumentationComponent();
     this.patientenNameList = patientenNameList;
     this.patientIDList = patientIDList;
     patientList = patientComponent.GetAllPatients();
 }
 public VoiceInfoMainForm()
 {
     InitializeComponent();
     patientenNameList = new List<string>();
     patientenIDList = new List<long>();
     patientComponent = new PatientDocumentationComponent();
     foreach(PatientData patient in patientComponent.GetAllPatients()){
         patientenNameList.Add(patient.FirstName + " " + patient.SurName);
         patientenIDList.Add(patient.Id);
     }
     voiceInfoAutomat = new VoiceInfoAutomat(this.patientenNameList, this.patientenIDList);
     this.SpeechEnabled = true;
     speechEnabled = true;
 }