X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web.UI.WebControls.WebParts%2FWebPartAuthorizationEventArgs.cs;h=6e5db5f6d54d45580043a3e9ec4c1f749e5dfbe3;hb=9975a45f43793e34318e593ddacd3f332f8d91c0;hp=9037482575d21c75a583314a1deb5b09bd4809d0;hpb=699e59742843044f6efa1726b7cb64f19d909e64;p=mono.git diff --git a/mcs/class/System.Web/System.Web.UI.WebControls.WebParts/WebPartAuthorizationEventArgs.cs b/mcs/class/System.Web/System.Web.UI.WebControls.WebParts/WebPartAuthorizationEventArgs.cs index 9037482575d..6e5db5f6d54 100644 --- a/mcs/class/System.Web/System.Web.UI.WebControls.WebParts/WebPartAuthorizationEventArgs.cs +++ b/mcs/class/System.Web/System.Web.UI.WebControls.WebParts/WebPartAuthorizationEventArgs.cs @@ -32,14 +32,41 @@ namespace System.Web.UI.WebControls.WebParts { - public class WebPartAuthorizationEventArgs : WebPartEventArgs + public class WebPartAuthorizationEventArgs : EventArgs { - private bool authorized; - public WebPartAuthorizationEventArgs (WebPart part) : base (part) + bool authorized; + Type type; + string path; + string authorizationFilter; + bool isShared; + + public WebPartAuthorizationEventArgs (Type type, + string path, + string authorizationFilter, + bool isShared) { - this.authorized = false; + this.type = type; + this.path = path; + this.authorizationFilter = authorizationFilter; + this.isShared = isShared; + } + + public Type Type { + get { return type; } + } + + public string Path { + get { return path; } } - + + public string AuthorizationFilter { + get { return authorizationFilter; } + } + + public bool IsShared { + get { return isShared; } + } + public bool IsAuthorized { get { return authorized; } set { authorized = value; }