Merge pull request #2781 from alexanderkyte/inflated_method_header_leak
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / FormViewUpdatedEventArgs.cs
index 7fe0fd297d5fde801eba9ea5562b189ccca7ab65..34a140d50d166e503d9725233bbe145c60db22e5 100644 (file)
@@ -4,7 +4,7 @@
 // Authors:
 //   Sanjay Gupta (gsanjay@novell.com)
 //
-// (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2010 Novell, Inc (http://www.novell.com)
 //
 
 //
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-
 using System.Collections.Specialized;
 
 namespace System.Web.UI.WebControls
 {
        public class FormViewUpdatedEventArgs : EventArgs
        {
-               private int rowsAffected;
-               private Exception e;
-               private bool exceptionHandled;
-               private bool keepEditMode;
+               int rowsAffected;
+               Exception e;
+               bool exceptionHandled;
+               bool keepEditMode;
+               IOrderedDictionary keys;
+               IOrderedDictionary oldValues;
+               IOrderedDictionary newValues;
                
                public FormViewUpdatedEventArgs (int affectedRows, Exception e)
                {
@@ -49,12 +50,20 @@ namespace System.Web.UI.WebControls
                        this.keepEditMode = false;
                }
                
+               internal FormViewUpdatedEventArgs (int affectedRows, Exception e, IOrderedDictionary keys, IOrderedDictionary oldValues, IOrderedDictionary newValues)
+                       : this (affectedRows, e)
+               {
+                       this.keys = keys;
+                       this.oldValues = oldValues;
+                       this.newValues = newValues;
+               }
+               
                public int AffectedRows {
                        get { return rowsAffected; }
                }
 
                public Exception Exception {
-                       get { return e };
+                       get { return e; }
                }
 
                public bool ExceptionHandled {
@@ -62,23 +71,22 @@ namespace System.Web.UI.WebControls
                        set { exceptionHandled = value; }
                }
        
-               public bool KeepInEdittMode {
+               public bool KeepInEditMode {
                        get { return keepEditMode; }
                        set { keepEditMode = value; }
                }
 
                public IOrderedDictionary Keys {
-                       get { return new NotImplementedException(); }
+                       get { return keys; }
                }
 
                public IOrderedDictionary NewValues {
-                       get { return new NotImplementedException(); }
+                       get { return newValues; }
                }
 
                public IOrderedDictionary OldValues {
-                       get { return new NotImplementedException(); }
+                       get { return oldValues; }
                }
        }
 }
 
-#endif