* DataTable.cs: Add rows to the row list if there is
[mono.git] / mcs / class / System.Data / System.Data / DataRowChangeEventArgs.cs
1 //
2 // System.Data.DataRowChangeEventArgs.cs
3 //
4 // Author:
5 //   Daniel Morgan <danmorg@sc.rr.com>
6 //   Ville Palo <vi64pa@koti.soon.fi>
7 //
8 // (C) Ximian, Inc 2002
9 //
10
11 namespace System.Data
12 {
13         /// <summary>
14         /// argument data for events RowChanged, RowChanging, 
15         /// OnRowDeleting, and OnRowDeleted
16         /// </summary>
17         public class DataRowChangeEventArgs : EventArgs {
18
19                 private DataRow row;
20                 private DataRowAction action; 
21         
22                 public DataRowChangeEventArgs(DataRow row,
23                         DataRowAction action) {
24                         
25                         this.row = row;
26                         this.action = action;
27                 }
28
29                 public DataRowAction Action {
30                         get {
31                                 return action;
32                         }
33                 }
34
35                 public DataRow Row {
36                         get {
37                                 return row;
38                         }
39                 }
40         }
41 }