public async Task <IActionResult> OnGetPipelinesAsync(Guid?engineId, string datasourceName, string entityName) { if (!engineId.HasValue || string.IsNullOrEmpty(entityName) || string.IsNullOrEmpty(datasourceName)) { return(new NotFoundResult()); } var pipelinesAction = await this.dataFactoriesController.GetPipelinesAsync(engineId.Value, datasourceName, entityName); if (pipelinesAction.HasError) { return(pipelinesAction); } var pipelines = pipelinesAction.Value; var pipelinesView = new List <PipelineView>(); foreach (var pipeline in pipelines) { var pipelineView = new PipelineView(pipeline, datasourceName, entityName); pipelinesView.Add(pipelineView); } return(new YJsonResult <List <PipelineView> >(pipelinesView)); }
private void ShowPipelineViewWithFocus() { if (pipelineView == null) { pipelineView = new PipelineView { DataContext = pipelineViewModel }; pipelineView.Closing += (sender, e) => pipelineView = null; } pipelineView.Show(); pipelineView.Activate(); }
private void ShowPipelineViewNoFocus() { if (pipelineView == null) { pipelineView = new PipelineView { DataContext = pipelineViewModel }; pipelineView.Closing += (sender, e) => pipelineView = null; } pipelineView.ShowActivated = false; pipelineView.Show(); pipelineView.Topmost = true; pipelineView.Topmost = false; }
private void ShowPipelineView() { if (pipelineView == null) { pipelineView = new PipelineView { DataContext = pipelineViewModel, WindowStartupLocation = WindowStartupLocation.Manual }; pipelineView.Closing += (sender, e) => pipelineView = null; pipelineView.Show(); } else { pipelineView.Activate(); } }