Update of /cvsroot/magicajax/magicajax/Core/UI/Controls
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31753/magicajax/Core/UI/Controls
Modified Files:
AjaxPanel.cs
Log Message:
Added some comments
Index: AjaxPanel.cs
===================================================================
RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** AjaxPanel.cs 15 Nov 2005 12:55:11 -0000 1.6
--- AjaxPanel.cs 15 Nov 2005 13:06:16 -0000 1.7
***************
*** 770,778 ****
#region Private Class ControlCollectionState
- [Serializable]
private class ControlCollectionState
{
private SortedList _controlIDHtmlHashes;
public ControlCollectionState(SortedList controlIDHtmlHashes)
{
--- 770,789 ----
#region Private Class ControlCollectionState
private class ControlCollectionState
{
private SortedList _controlIDHtmlHashes;
+ /// <summary>
+ /// Default ctor
+ /// </summary>
+ public ControlCollectionState()
+ {
+ _controlIDHtmlHashes = new SortedList();
+ }
+
+ /// <summary>
+ /// Constructs a new ControlCollectionState with a list of controlIDHtmlHashes
+ /// </summary>
+ /// <param name="controlIDHtmlHashes"></param>
public ControlCollectionState(SortedList controlIDHtmlHashes)
{
***************
*** 780,783 ****
--- 791,799 ----
}
+ /// <summary>
+ /// Loads the ControlCollectionState from the hidden form element
+ /// </summary>
+ /// <param name="panelUniqueID"></param>
+ /// <returns></returns>
public static ControlCollectionState LoadState(string panelUniqueID)
{
***************
*** 803,806 ****
--- 819,827 ----
}
+ /// <summary>
+ /// Returns the ClientID of the hidden field containing the ControlState hashes for given panel
+ /// </summary>
+ /// <param name="panelUniqueID"></param>
+ /// <returns></returns>
public static string GetPanelControlStateHiddenFieldID (string panelUniqueID)
{
***************
*** 820,823 ****
--- 841,850 ----
}
+ /// <summary>
+ /// Saves the ControlState hashes.
+ /// When in AjaxCall mode, creates SetFieldScript to set hidden field when last ControlState hashes were changed.
+ /// </summary>
+ /// <param name="panelUniqueID"></param>
+ /// <param name="page"></param>
public void Save(string panelUniqueID, Page page)
{
***************
*** 853,861 ****
}
-
- public ControlCollectionState()
- {
- _controlIDHtmlHashes = new SortedList();
- }
}
#endregion
--- 880,883 ----
|