using System;
using System.Collections.Generic;
using System.Text;
namespace WmData {
///
/// Event arguments for a data change event
///
public class WmDataChangeEventArguments : EventArgs {
private string tableName;
private WmDataRowAction dataRowAction;
private int rowId;
public WmDataChangeEventArguments(string tableName, WmDataRowAction dataRowAction, int rowId) {
this.tableName = tableName;
this.dataRowAction = dataRowAction;
this.rowId = rowId;
}
///
/// Represents the table name that hosts the data change
///
public string TableName {
get { return tableName; }
}
///
/// Indicates the kind of change
///
public WmDataRowAction DataRowAction {
get { return dataRowAction; }
}
///
/// Indicates the row id that was affected by this change
///
public int RowId {
get { return rowId; }
}
}
///
/// Kind of change of a data row
///
public enum WmDataRowAction {
UPDATE = 1,
DELETE = 2,
ADD = 3,
CHECKSUM = 4
}
}