private void AddExplicit(object value) { var role = PipelineComponent.GetRoleFor(value.GetType()); var component = new DataFlowComponentVisualisation(role, value, null); flpPipelineDiagram.Controls.Add(component);//add the explicit component component.IsLocked = true; try { if (!_useCase.IsDesignTime) { _useCase.GetContext().PreInitializeGeneric(new ThrowImmediatelyDataLoadEventListener(), component.Value, _useCase.GetInitializationObjects().ToArray()); } } catch (Exception e) { ExceptionViewer.Show("PreInitialize failed on Explicit (locked component) " + component.Value.GetType().Name, e); } }