/* 
   ASPxDataControls Library by Developer Express

   Copyright (c) 2000-2005 Developer Express Inc  
   ALL RIGHTS RESERVED

   The entire contents of this file is protected by U.S. and   
   International Copyright Laws. Unauthorized reproduction,     
   reverse-engineering, and distribution of all or any portion of   
   the code contained in this file is strictly prohibited and may  
   result in severe civil and criminal penalties and will be        
   prosecuted to the maximum extent possible under the law.
*/
function ASPxClientEvent() {
	this.handlerList = [];
	this.AddHandler = function (handler) {
		this.handlerList.push(handler);
	}
	this.RemoveHandler = function (handler) {
		array_remove(this.handlerList, handler);
	}
	this.FireEvent = function (obj, args) {
		for(var i = 0; i < this.handlerList.length; i++) {
			this.handlerList[i](obj, args);
		}
	}
	
	this.IsEmpty = function (){
		return this.handlerList.length == 0;
	}
}
function ASPxClientEventArgs(){
}
function ASPxClientCancelEventArgs(){
	this.inherit = ASPxClientEventArgs;
	this.inherit();
	this.cancel = false;
}
function ASPxClientHandledEventArgs(column, row1, row2, value1, value2){
	this.inherit = ASPxClientEventArgs;
	this.inherit();
	this.handled = false;
}
function ASPxClientValidateEventArgs(value){
	this.inherit = ASPxClientCancelEventArgs;
	this.inherit();
	this.value = value;
	this.message = "";
}
function ASPxClientDataControllerValidateEventArgs(row, column, value){
	this.inherit = ASPxClientValidateEventArgs;
	this.inherit(value);
	this.row = row;
	this.column = column;
}
function ASPxClientDataControllerCommandEventArgs(row){
	this.inherit = ASPxClientEventArgs;
	this.inherit();
	this.row = row;
}
function ASPxClientBeforeDataControllerCommandEventArgs(row){
	this.inherit = ASPxClientCancelEventArgs;
	this.inherit();
	this.row = row;
}
function ASPxClientBeforeDataControllerNewRowCommandEventArgs(row, append){
	this.inherit = ASPxClientBeforeDataControllerCommandEventArgs;
	this.inherit(row);
	this.append = append;
}
function ASPxClientDataControllerAfterSearchEventArgs(row){
	this.inherit = ASPxClientEventArgs;
	this.inherit();
	this.searchColumn = searchColumn;
	this.searchString = searchString;
	this.foundRow = foundRow;
}
function ASPxClientCompareRowsEventArgs(column, row1, row2, value1, value2, action){
	this.inherit = ASPxClientHandledEventArgs;
	this.inherit();
	this.column = column;
	this.row1 = row1;
	this.row2 = row2;
	this.value1 = value1;
	this.value2 = value2;
	this.action = action;
	this.result = 0;
}
function ASPxClientKeyEventArgs(keyCode, alt, control, shift){
	this.inherit = ASPxClientHandledEventArgs;
	this.inherit();
	this.keyCode = keyCode;
	this.alt = alt;
	this.control = control;
	this.shift = shift;
}
