protected void LeaveConfiguration() { if (_mode == Mode.None) { return; } IWorkflowManager workflowManager = ServiceRegistration.Get <IWorkflowManager>(); workflowManager.NavigatePopAsync(1); }
public void Execute() { IWorkflowManager workflowManager = ServiceRegistration.Get <IWorkflowManager>(); MediaNavigationModel model = (MediaNavigationModel)workflowManager.GetModel(MediaNavigationModel.MEDIA_MODEL_ID); NavigationData navigationData = model.NavigationData; workflowManager.NavigatePopAsync(1); if (navigationData == null || !navigationData.IsEnabled) { ServiceRegistration.Get <ILogger>().Error("DeleteAllRecordings: No enabled navigation data present"); return; } List <MediaItem> mediaItems = navigationData.CurrentScreenData.GetAllMediaItems().ToList(); QueryDeleteAll(mediaItems); }