コード例 #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");
                }
            }
コード例 #2
0
ファイル: MultiPanel.cs プロジェクト: wow4all/evemu_server
            /// <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");
                }
            }