public void startSurvey() { int index = 0; foreach (var element in _sensors) { if (element.condition == true) { //DoctorPatientSurveyGraphic newPointSource = new DoctorPatientSurveyGraphic(_presenter, index); IEmulator newPointSource = (new GetEmulator(_presenter, index, element.type)).getEmulator(); _pointSources.Add(newPointSource); newPointSource.startWritingGraphic(); index += 1; } } }