Merge pull request #757 from mlintner/master
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / FormViewInsertedEventArgs.cs
index 178c7e981415ec3f70ef4822611384c60430f4af..b16a49b4abb579dba29134cb0bebf27896c84952 100644 (file)
@@ -4,7 +4,7 @@
 // Authors:
 //   Sanjay Gupta (gsanjay@novell.com)
 //
-// (C) 2004 Novell, Inc (http://www.novell.com)
+// (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 FormViewInsertedEventArgs : EventArgs
        {
-               private int rowsAffected;
-               private Exception e;
-               private bool exceptionHandled;
-               private bool keepInsertedMode;
+               int rowsAffected;
+               Exception e;
+               bool exceptionHandled;
+               bool keepInsertedMode;
+               IOrderedDictionary values;
                
                public FormViewInsertedEventArgs (int affectedRows, Exception e)
                {
                        this.rowsAffected = affectedRows;
                        this.e = e;
-                       this.exceptionHandled = false;
-                       this.keepInsertedMode = false;
+               }
+               
+               internal FormViewInsertedEventArgs (int affectedRows, Exception e, IOrderedDictionary values)
+               : this (affectedRows, e)
+               {
+                       this.values = values;
                }
                
                public int AffectedRows {
@@ -68,9 +71,8 @@ namespace System.Web.UI.WebControls
                }
 
                public IOrderedDictionary Values {
-                       get { throw new NotImplementedException(); }
+                       get { return values; }
                }
        }
 }
 
-#endif