public DoctorPatientSurveyService(IDoctorPatientSurveyPresenterEmulator presenter, patientFull.Survey survey) { _survey = survey; _presenter = presenter; _sensors = new List <SensorStruct>(); _pointSources = new List <IEmulator>(); }
public void getSurvey(int id) { patientFull.Survey survey = _service.getSurvey(id); calculate_radioButtonValue(survey); calculate_checkBoxValue(survey.sensors); _dateTextboxValue = survey.date; _view.fillSurveyInformation(); }
private void calculate_radioButtonValue(patientFull.Survey data) { if (data.type.Equals("Run")) { _radioButtonValue = 1; } else if (data.type.Equals("Walk")) { _radioButtonValue = 2; } else if (data.type.Equals("Strengh")) { _radioButtonValue = 3; } }
public void callDoctorPatientSurveyForm(patientFull.Survey survey) { new DoctorPatientSurveyForm(_EnterView, this, survey).Show(); this.Hide(); }
public DoctorPatientSurveyForm(EnterForm EnterView, DoctorPatientForm DoctorPatientView, patientFull.Survey survey) { InitializeComponent(); _presenter = new DoctorPatientSurveyPresenter(this, survey); _presenter.initView(); _EnterView = EnterView; _DoctorPatientView = DoctorPatientView; _closeWay = false; _chartPointsList = new List <Series>(); _delegate = new AddDot(addDot); }
public DoctorPatientSurveyPresenter(IDoctorPatientSurveyForm view, patientFull.Survey survey) { _view = view; _service = new DoctorPatientSurveyService(this, survey); _surveyGoing = false; }