Example #1
0
            /// <summary>
            /// Constructor.
            /// </summary>
            /// <param name="owner"></param>
            public MultiPanelPagesCollection(Control owner)
                : base(owner)
            {
                if (owner == null)
                {
                    throw new ArgumentNullException("owner", "Tried to create a MultiPanelPagesCollection with a null owner.");
                }

                m_owner = owner as MultiPanel;
                if (m_owner == null)
                {
                    throw new ArgumentException("Tried to create a MultiPanelPagesCollection with a non-MultiPanel owner.", "owner");
                }
            }
Example #2
0
            /// <summary>
            /// Constructor.
            /// </summary>
            /// <param name="owner"></param>
            public MultiPanelPagesCollection(Control owner)
                : base(owner)
            {
                if (owner == null)
                {
                    throw new ArgumentNullException("owner", "Tried to create a MultiPanelPagesCollection with a null owner.");
                }

                m_owner = owner as MultiPanel;
                if (m_owner == null)
                {
                    throw new ArgumentException("Tried to create a MultiPanelPagesCollection with a non-MultiPanel owner.", "owner");
                }
            }