public SurveyCalibration Calibrate() { if (ReferenceEquals(_surveyCalibration, null)) { var surveyBuilder = new SurveyCalibrationBuilder(); var result = surveyBuilder.Build(SurveyPoints.ToArray()); _surveyCalibration = result; } return(_surveyCalibration); }
private void OnTimerTick(object sender, EventArgs e) { if (_surveyPointProvider.HasSurveyPoint()) { var surveyPoint = GetSurveyPoint(); if (surveyPoint == null) { return; } if (_storePoints) { ++TotalPointsCount; surveyPoint.Seqno = TotalPointsCount; SurveyPoints.Add(surveyPoint); } OnSurveyPointReceived(); } }