コード例 #1
0
            /// <summary>
            /// Contruct the contained sub host with the <see cref="ApplicationComponentContainer"/>
            /// owner that will provide access to the real host.  The contained component is passed
            /// to the base <see cref="ApplicationComponentHost"/>.
            /// </summary>
            /// <param name="owner"></param>
            /// <param name="component"></param>
            public ContainedComponentHost(
                ApplicationComponentContainer owner,
                IApplicationComponent component)
                : base(component)
            {
                Platform.CheckForNullReference(owner, "owner");

                _owner = owner;
            }
コード例 #2
0
            /// <summary>
            /// Contruct the contained sub host with the <see cref="ApplicationComponentContainer"/>
            /// owner that will provide access to the real host.  The contained component is passed
            /// to the base <see cref="ApplicationComponentHost"/>.
            /// </summary>
            /// <param name="owner"></param>
            /// <param name="component"></param>
            public ContainedComponentHost(
                ApplicationComponentContainer owner,
                IApplicationComponent component)
                : base(component)
            {
                Platform.CheckForNullReference(owner, "owner");

                _owner = owner;
            }