From: Argiris K. <be...@us...> - 2005-12-22 01:15:30
|
Update of /cvsroot/magicajax/magicajax/Core/Interfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7486/Core/Interfaces Modified Files: IAjaxCallEventHandler.cs IPreWriteScriptEventHandler.cs IScriptWriter.cs Log Message: A bit of refactoring for the ajax events handling. --AjaxCall event is renamed to AjaxCallStart --AjaxControl/AjaxPage/AjaxUserControl invoke AjaxCallStart at Load event, PreWriteScript at PreRender, and AjaxCallEnd at Unload, during an Ajax callback --Some minor modifications to make extending AjaxControl a bit easier. Index: IAjaxCallEventHandler.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/Interfaces/IAjaxCallEventHandler.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** IAjaxCallEventHandler.cs 20 Nov 2005 08:47:29 -0000 1.3 --- IAjaxCallEventHandler.cs 22 Dec 2005 01:15:19 -0000 1.4 *************** *** 22,26 **** using System; ! namespace MagicAjax { /// <summary> --- 22,26 ---- using System; ! namespace MagicAjax.UI { /// <summary> *************** *** 36,42 **** /// public class CustomTextBox : System.Web.UI.WebControls.TextBox, IAjaxCallEventHandler /// { ! /// public void RaiseAjaxCallEvent() /// { ! /// OnAjaxCall(EventArgs.Empty); /// } /// public void RaiseAjaxCallEndEvent() --- 36,42 ---- /// public class CustomTextBox : System.Web.UI.WebControls.TextBox, IAjaxCallEventHandler /// { ! /// public void RaiseAjaxCallStartEvent() /// { ! /// OnAjaxCallStart(EventArgs.Empty); /// } /// public void RaiseAjaxCallEndEvent() *************** *** 48,52 **** public interface IAjaxCallEventHandler { ! void RaiseAjaxCallEvent(); void RaiseAjaxCallEndEvent(); } --- 48,52 ---- public interface IAjaxCallEventHandler { ! void RaiseAjaxCallStartEvent(); void RaiseAjaxCallEndEvent(); } Index: IPreWriteScriptEventHandler.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/Interfaces/IPreWriteScriptEventHandler.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** IPreWriteScriptEventHandler.cs 20 Nov 2005 08:47:29 -0000 1.3 --- IPreWriteScriptEventHandler.cs 22 Dec 2005 01:15:19 -0000 1.4 *************** *** 22,26 **** using System; ! namespace MagicAjax { /// <summary> --- 22,26 ---- using System; ! namespace MagicAjax.UI { /// <summary> Index: IScriptWriter.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/Interfaces/IScriptWriter.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** IScriptWriter.cs 20 Nov 2005 08:47:29 -0000 1.4 --- IScriptWriter.cs 22 Dec 2005 01:15:19 -0000 1.5 *************** *** 22,26 **** using System; ! namespace MagicAjax { /// <summary> --- 22,26 ---- using System; ! namespace MagicAjax.UI { /// <summary> |