Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default...
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls.WebParts / WebPartAuthorizationEventArgs.cs
index 9037482575d21c75a583314a1deb5b09bd4809d0..6e5db5f6d54d45580043a3e9ec4c1f749e5dfbe3 100644 (file)
 
 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; }