using System; using System.Collections.Generic; using System.Text; namespace Csla.Web { /// /// Argument object used in the DeleteObject event. /// public class DeleteObjectArgs : EventArgs { private System.Collections.IDictionary _keys; private System.Collections.IDictionary _oldValues; private int _rowsAffected; /// /// Gets or sets the number of rows affected /// while handling this event. /// /// /// /// /// The code handling the event should set this /// value to indicate the number of rows affected /// by the operation. /// public int RowsAffected { get { return _rowsAffected; } set { _rowsAffected = value; } } /// /// The list of key values entered by the user. /// /// It is up to the event handler in the /// web page to use the values to identify the /// object to be deleted. public System.Collections.IDictionary Keys { get { return _keys; } } /// /// The list of old data values maintained by /// data binding. /// /// It is up to the event handler in the /// web page to use the values to identify the /// object to be deleted. public System.Collections.IDictionary OldValues { get { return _oldValues; } } /// /// Create an instance of the object. /// public DeleteObjectArgs(System.Collections.IDictionary keys, System.Collections.IDictionary oldValues) { _keys = keys; _oldValues = oldValues; } } }