private void OnCaptureEndedEvent(Subcalibration sender, EventArgs e) { if (CaptureEnded != null) CaptureEnded(sender, e); }
private void sub_CaptureEnded(Subcalibration sender, EventArgs e) { ActiveCalibrationSub = null; }
private void OnRequestCaptureEvent(Subcalibration sender, EventArgs e) { if (RequestCapture != null) RequestCapture(sender, e); }
private async void sub_RequestCapture(Subcalibration sender, EventArgs e) { if (ActiveCalibrationSub != null) ActiveCalibrationSub.AbortCommand.Execute(null); await Task.Delay(200); ActiveCalibrationSub = sender; await ActiveCalibrationSub.RunAsync(); }