예제 #1
0
        private void StartCrmConfigurationWindow()
        {
            IntegrationTool.Module.WriteToDynamicsCrm.WriteToDynamicsCrmConfiguration writeToCrmConfig = new IntegrationTool.Module.WriteToDynamicsCrm.WriteToDynamicsCrmConfiguration();
            writeToCrmConfig.EntityName      = "account";
            writeToCrmConfig.ConfigurationId = Guid.NewGuid();
            writeToCrmConfig.SelectedConnectionConfigurationId = CRMCONNECTIONID;

            IDatastore dataObject = GetContactsDatastore();

            IntegrationTool.Module.WriteToDynamicsCrm.ConfigurationWindow   writeToCrmConfigWindow = new IntegrationTool.Module.WriteToDynamicsCrm.ConfigurationWindow(writeToCrmConfig, dataObject);
            IntegrationTool.ProjectDesigner.MenuWindows.ConfigurationWindow configWindow           = GetConfigurationWindow(writeToCrmConfigWindow, true, writeToCrmConfig, ModuleType.Target, dataObject);
            configWindow.Closing += configWindow_Closing;
            configWindow.Show();
        }
예제 #2
0
        private void StartStringTransformationWindow()
        {
            IDatastore dataObject = GetContactsDatastore();

            IntegrationTool.Module.StringTranformation.StringTransformationConfiguration stringTransformationConfiguration = new IntegrationTool.Module.StringTranformation.StringTransformationConfiguration();
            stringTransformationConfiguration.ConfigurationId = Guid.NewGuid();
            stringTransformationConfiguration.Name            = "MyTransformation";
            stringTransformationConfiguration.Transformations.Add(new IntegrationTool.Module.StringTranformation.SDK.StringTransformationParameter()
            {
                TransformationType = IntegrationTool.Module.StringTranformation.SDK.Enums.StringTransformationType.Replace, Parameter1 = "Bla", Parameter2 = "bla2"
            });

            List <IntegrationTool.Module.StringTranformation.SDK.StringTransformationAttribute> transformationAttributes = IntegrationTool.Module.StringTranformation.SDK.Helpers.LoadAllTransformationClasses();

            IntegrationTool.Module.StringTranformation.ConfigurationWindow stringTransformationConfigWindow = new IntegrationTool.Module.StringTranformation.ConfigurationWindow(stringTransformationConfiguration, transformationAttributes, dataObject);

            IntegrationTool.ProjectDesigner.MenuWindows.ConfigurationWindow configWindow = GetConfigurationWindow(stringTransformationConfigWindow, true, stringTransformationConfiguration, ModuleType.Transformation, dataObject);
            configWindow.Closing += configWindow_Closing;
            configWindow.Show();
        }
예제 #3
0
 void configWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     IntegrationTool.ProjectDesigner.MenuWindows.ConfigurationWindow configWindow = sender as IntegrationTool.ProjectDesigner.MenuWindows.ConfigurationWindow;
     var config = configWindow.DataContext;
 }