Beispiel #1
0
    public override void Add(Control value)
    {
        if (value == null)
        {
            throw new ArgumentNullException("value", "Tried to add a null value to the MultiPanelPagesCollection.");
        }
        MultiPanelPage p = value as MultiPanelPage;

        if (p == null)
        {
            throw new ArgumentException("Tried to add a non-MultiPanelPage control to the MultiPanelPagesCollection", "value");
        }
        p.SendToBack();
        base.Add(p);
    }