File: UI\WebParts\WebPartAddingEventArgs.cs
Project: ndp\fx\src\xsp\system\Web\System.Web.csproj (System.Web)
//------------------------------------------------------------------------------
// <copyright file="WebPartAddingEventArgs.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
 
namespace System.Web.UI.WebControls.WebParts {
 
    using System;
    using System.ComponentModel;
 
    public class WebPartAddingEventArgs : WebPartCancelEventArgs {
        private WebPartZoneBase _zone;
        private int _zoneIndex;
 
        public WebPartAddingEventArgs(WebPart webPart, WebPartZoneBase zone, int zoneIndex) : base(webPart) {
            _zone = zone;
            _zoneIndex = zoneIndex;
        }
 
        public WebPartZoneBase Zone {
            get {
                return _zone;
            }
            set {
                _zone = value;
            }
        }
 
        public int ZoneIndex {
            get {
                return _zoneIndex;
            }
            set {
                _zoneIndex = value;
            }
        }
    }
}