File: UI\WebParts\WebPartDisplayModeCancelEventArgs.cs
Project: ndp\fx\src\xsp\system\Web\System.Web.csproj (System.Web)
//------------------------------------------------------------------------------
// <copyright file="WebPartDisplayModeCancelEventArgs.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
 
namespace System.Web.UI.WebControls.WebParts {
 
    using System;
    using System.ComponentModel;
 
    public class WebPartDisplayModeCancelEventArgs : CancelEventArgs {
        private WebPartDisplayMode _newDisplayMode;
 
        public WebPartDisplayModeCancelEventArgs(WebPartDisplayMode newDisplayMode) {
            _newDisplayMode = newDisplayMode;
        }
 
        public WebPartDisplayMode NewDisplayMode {
            get {
                return _newDisplayMode;
            }
            set {
                _newDisplayMode = value;
            }
        }
    }
}