public ConfigurationWindow(WriteToDynamicsCrmN2NConfiguration configuration, IDatastore dataObject)
 {
     InitializeComponent();
     this.dataObject             = dataObject;
     this.configuration          = configuration;
     ddEntity1.SelectionChanged += ddEntity1_SelectionChanged;
 }
Пример #2
0
        public ConfigurationContent(WriteToDynamicsCrmN2NConfiguration configuration, Microsoft.Xrm.Sdk.IOrganizationService organizationService, EntityMetadata entity1Metadata, IDatastore dataObject)
        {
            InitializeComponent();

            this.entity1Metadata     = entity1Metadata;
            this.organizationService = organizationService;
            this.dataObject          = dataObject;
            this.configuration       = configuration;

            InitializeMappingControl(entity1MappingControl, entity1Metadata, configuration.Entity1Mapping);
            InitializeEntity2Dropdown();
            if (!String.IsNullOrEmpty(configuration.Entity2Name))
            {
                foreach (var item in ddEntity2.Items)
                {
                    if (((ComboBoxItem)item).Tag.ToString() == configuration.Entity2Name)
                    {
                        ddEntity2.SelectedItem = item;
                    }
                }
            }
        }
Пример #3
0
 public void SetConfiguration(ConfigurationBase configurationBase)
 {
     this.Configuration = configurationBase as WriteToDynamicsCrmN2NConfiguration;
 }