예제 #1
0
        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);
            }
        }
예제 #2
0
 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);
     }
 }