// 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)
{
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 {
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