日期:2013-11-11  浏览次数:20517 次

一、 数据层类:

using System;

using System.Collections;

using System.Data;

using System.Data.SqlClient;

using Town.Data;

using Town.Log;



namespace Town.Com

{

/// <summary>

/// 功能:积分设置集合类

/// 作者:Rexsp

/// 创建日期:2004-01-14

/// 修改者:

/// 修改日期:

/// </summary>

public class ScoreSettingCollection

{

#region 私有成员

private ArrayList members;

#endregion



#region 构造函数

/// <summary>

/// 构造函数

/// </summary>

public ScoreSettingCollection()

{

}

#endregion



#region 公共属性

/// <summary>

/// Operation对象的个数

/// </summary>

public int Count

{

get

{

if( members != null )

return members.Count;

else

return 0;

}

}

#endregion



#region 索引

/// <summary>

/// 索引

/// </summary>

public ScoreSetting this[int index]

{

get

{

if ( members != null )

return (ScoreSetting)( members[index] );

else

return null;

}

}

#endregion



#region 私有方法

/// <summary>

/// 添加Operation到OperationCollection集合

/// </summary>

private void Add(ScoreSetting scoreSetting)

{

if ( members == null )

members = new ArrayList();

members.Add( scoreSetting );

}

#endregion