public void ComponentDesigner_Initialize()
        {
            var underTest = new ComponentDesigner();
            var button    = new Button();

            underTest.Initialize(button);
            Assert.NotNull(underTest.Component);
            Assert.Equal(button, underTest.Component);
            Assert.NotNull(underTest.AssociatedComponents);
        }
        /// <summary>
        /// Initialize the designer by creating a SqlDataAdapterDesigner and delegating most of our
        /// functionality to it.
        /// </summary>
        /// <param name="component"></param>
        public override void Initialize(IComponent component)
        {
            base.Initialize(component);

            // Initialize a SqlDataAdapterDesigner through reflection and set it up to work on our behalf
            if (SQLiteDataAdapterToolboxItem._vsdesigner != null)
            {
                Type type = SQLiteDataAdapterToolboxItem._vsdesigner.GetType("Microsoft.VSDesigner.Data.VS.SqlDataAdapterDesigner");
                if (type != null)
                {
                    _designer = (ComponentDesigner)Activator.CreateInstance(type);
                    _designer.Initialize(component);
                }
            }
        }