public override void Execute(SessionRecordingViewModel recording) { if (recording.Recording.SelectedDevices.Any(d => d.Equals(DeviceType.Physiological.EYETRACKER))) { var points = _settings.Points?.ToList(); if (points == null || points.Any() == false) { points = DefaultPlan; } if (points.Any()) { _sequenceLength = points.Count; SetupAnimation(points); } else { Complete(); } } else { OnCompleted(SessionStepResult.Skipped); } }
public async void Execute(SessionRecordingViewModel recording) { if (isContent) { Content?.Execute(recording); // ??? // add content VM to the property named Content // register for Completed event of the Content VM and wait for it? try { await Task.Run(() => _executor.Execute(recording.Recording, _settings)); } catch { } } else { _executor.Execute(recording.Recording, _settings); } IsContent = false; Content?.Complete(); // Content.Complete(); ??? }
public override void Execute(SessionRecordingViewModel recording) { if (_settings.Parameters != null && _settings.Parameters.Any()) { Instructions = SessionRecordingSettingsHelper.FillParameters(Instructions, _settings.Parameters, recording.Recording.Settings); Title = SessionRecordingSettingsHelper.FillParameters(Title, _settings.Parameters, recording.Recording.Settings); } }
public override void Execute(SessionRecordingViewModel recording) { base.Execute(recording); if (String.IsNullOrWhiteSpace(Title)) { Title = recording.Recording.Definition.Project; } OnPropertyChanged(nameof(Title)); }
public override void Execute(SessionRecordingViewModel recording) { if (_calibrate != null && recording.Recording.SelectedDevices.Any(d => d.Equals(DeviceType.Physiological.EYETRACKER))) { TryStartCalibrationAsync(_calibrate).Forget(); } else { OnCompleted(SessionStepResult.Skipped); } }
public override void Execute(SessionRecordingViewModel recording) { BitmapSource image; if (_images.TryGet(_settings.Path, out image)) { UpdateSize(image); image.DownloadCompleted += Image_DownloadCompleted; ImageSource = image; } else { Width = 0; Height = 0; } }
public void Execute(SessionRecordingViewModel recording) { }
public override void Execute(SessionRecordingViewModel recording) { _recording = recording.Recording; }
public abstract void Execute(SessionRecordingViewModel recording);