日期:2014-05-17 浏览次数:20788 次
for (int i = 0; i < count_total;i++ )
{
pic_id = ApplicationCommon.IsInt(dt_gallery.Rows[i]["pic_id"].ToString());
pic_no = dt_gallery.Rows[i]["pic_no"].ToString();
user_account = dt_gallery.Rows[i]["user_account"].ToString();
if (CheckOutOfMaxThread())
{
#region Gallery download
#endregion
}
}
/// <summary>
/// if out of max thread then sleep 1 minute then check again
/// </summary>
/// <returns></returns>
private bool CheckOutOfMaxThread()
{