using System;
namespace DBWebControls.WebNavigator{
/// <summary>
/// Summary description for ListPage.
/// </summary>
public delegate void NavListPageStateItemSelected(NavListPageState source, object SelectedData);
public enum NavListPageStateOpenMode {Normal = 1, SelectionList = 2};
public class NavListPageState : NavBasePageState
{
public NavListPageStateItemSelected ItemSelected;
public NavListPageState(string p_PagePath):base(p_PagePath)
{
l_OpenMode = NavListPageStateOpenMode.Normal;
}
public NavListPageState(string p_PagePath, DBWebControls.Controls.GenericListState p_ListState):base(p_PagePath)
{
l_ListState = p_ListState;
l_OpenMode = NavListPageStateOpenMode.Normal;
}
public NavListPageState(string p_PagePath, DBWebControls.Controls.GenericListState p_ListState, NavListPageStateOpenMode p_OpenMode):base(p_PagePath)
{
l_ListState = p_ListState;
l_OpenMode = p_OpenMode;
}
protected DBWebControls.Controls.GenericListState l_ListState;
public DBWebControls.Controls.GenericListState ListState
{
get{return l_ListState;}
set{l_ListState = value;}
}
protected NavListPageStateOpenMode l_OpenMode;
public NavListPageStateOpenMode OpenMode
{
get{return l_OpenMode;}
set{l_OpenMode = value;}
}
#region IDisposable Members
public override void Dispose()
{
base.Dispose();
if(l_ListState != null)
l_ListState.Dispose();
ItemSelected = null;
}
#endregion
}
}
|