private void CleanData(string obj) { dataCursor.Clean(); peaksAnalyzer.Clean(); QuickViewChanged?.Invoke(this, EventArgs.Empty); AnalysisChanged?.Invoke(this, EventArgs.Empty); }
private void AllPeaksAnalysisCompleted(object sender, RunWorkerCompletedEventArgs e) { allPeaksAnalysis.WorkerReportsProgress = false; AnalysisChanged?.Invoke(this, EventArgs.Empty); AnalyzeMainPeakAvailable = true; AnalyzeAllPeaksAvailable = true; AllPeaksAnalysisPercent = 100; OnPropertyChanged(nameof(AllPeaksAnalysisPercent)); OnPropertyChanged(nameof(AnalyzeMainPeakAvailable)); OnPropertyChanged(nameof(AnalyzeAllPeaksAvailable)); }
protected virtual void OnAnalysisChanged(LidarRecommendation recommendation, double adjustAngle = 0) { if (recommendation != LastRecommendation || adjustAngle != LastAdjustAngle) { LastRecommendation = recommendation; LastAdjustAngle = adjustAngle; AnalysisChanged?.Invoke(this, new AnalysisEventArgs() { Recommendation = recommendation, AdjustAngle = adjustAngle }); } }