void subFlowDesigner_DesignerItemDoubleClick(object sender, EventArgs e) { try { DesignerItem designerItem = sender as DesignerItem; StepConfigurationBase configuration = GetStepConfiguration(designerItem.ID, designerItem.ModuleDescription, this.Package); SaveSubflowConfiguration(); SubFlowExecution subFlowExecution = GetSubflowExecution(); var dataStores = designerItem.ModuleDescription.Attributes.ModuleType == ModuleType.Source ? new List <IDatastore>() { new DummyDataStore() } : subFlowExecution.GetDataObjectForDesignerItem(designerItem.ID, false, null); ConfigurationWindowSettings configurationWindowSettings = ConfigurationWindowSettings.Get(designerItem, configuration, this.moduleLoader, dataStores, Connections); ShowConfiguationWindow(configurationWindowSettings); } catch (Exception ex) { HandleWindowOpenExceptions(ex); } }
void subFlowDesigner_SubflowMagnifyIconDoubleClick(object sender, EventArgs e) { try { DesignerItem designerItem = ((RoutedEventArgs)e).OriginalSource as DesignerItem; SubFlowExecution subFlowExecution = GetSubflowExecution(); var dataStores = subFlowExecution.GetDataObjectForDesignerItem(designerItem.ID, true, null); DataPreviewWindow dataPreviewWindow = new DataPreviewWindow(dataStores.First()); dataPreviewWindow.Show(); } catch (Exception ex) { HandleWindowOpenExceptions(ex); } }