コード例 #1
0
ファイル: Details.cshtml.cs プロジェクト: Mimetis/ProjectY
        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));
        }
コード例 #2
0
        private void ShowPipelineViewWithFocus()
        {
            if (pipelineView == null)
            {
                pipelineView = new PipelineView {
                    DataContext = pipelineViewModel
                };
                pipelineView.Closing += (sender, e) => pipelineView = null;
            }

            pipelineView.Show();
            pipelineView.Activate();
        }
コード例 #3
0
        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;
        }
コード例 #4
0
 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();
     }
 }