Merge pull request #2448 from BrzVlad/feature-cprop-opt
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / DetailsViewInsertedEventArgs.cs
index 588d0aa25645dd0d365bf56157168237e32610cb..14a319d444abbbdbf36310ded5ad15da15754abb 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 DetailsViewInsertedEventArgs : EventArgs
        {
-               private int rowsAffected;
-               private Exception e;
-               private bool exceptionHandled;
-               private bool keepInsertedMode;
+               int rowsAffected;
+               Exception e;
+               bool exceptionHandled;
+               bool keepInsertedMode;
+               IOrderedDictionary values;
                
                public DetailsViewInsertedEventArgs (int affectedRows, Exception e)
                {
@@ -49,12 +48,17 @@ namespace System.Web.UI.WebControls
                        this.keepInsertedMode = false;
                }
                
+               internal DetailsViewInsertedEventArgs (int affectedRows, Exception e, IOrderedDictionary values): this (affectedRows, e)
+               {
+                       this.values = values;
+               }
+               
                public int AffectedRows {
                        get { return rowsAffected; }
                }
 
                public Exception Exception {
-                       get { return e };
+                       get { return e; }
                }
 
                public bool ExceptionHandled {
@@ -68,9 +72,8 @@ namespace System.Web.UI.WebControls
                }
 
                public IOrderedDictionary Values {
-                       get { return new NotImplementedException(); }
+                       get { return values; }
                }
        }
 }
 
-#endif