if(tmpuser.curtime.AddSeconds(DELAY_SECONDS).CompareTo(DateTime.Now)<0)
// {
// temp.alluser.RemoveAt(i);
// }
// }
SohoProject.OnLineUser temp=new SohoProject.OnLineUser(); //定义一个用户对象
//开始检查是否有用户过期了 string strExpr;
//tmpuser.curtime.AddSeconds(DELAY_SECONDS).CompareTo(DateTime.Now)<0
strExpr = "curtime < ''" + DateTime.Now.AddSeconds( 0 - DELAY_SECONDS) + "''";
#if DEBUG
(new SohoProject.SohoDebug()).WriteToDoc(strExpr);
#endif
DataRow curUser;
// Use the Select method to find all rows matching the filter.
curUser = temp.alluser.Select(strExpr);
if (curUser.Length >0 )
{
//删除这些记录
for(int i = 0; i < curUser.Length; i ++)
{
curUser[i].Delete();
}
temp.alluser.AcceptChanges();
}
Thread.Sleep(DELAY_T