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