private void click_Scro(WebBrowser web)
{
try
{
++this.__temJsq;
if (this.__temJsq > 1000)
this.__temJsq = 0;
DateTime dateTime = Convert.ToDateTime(this._curTask.startTime);
DateTime now = DateTime.Now;
TimeSpan timeSpan = now.Subtract(dateTime);
if ((this._curTask.Stu == "浏览主页" || this._curTask.Stu == "浏览宝贝" || this._curTask.Stu == "浏览进店页") && this.__temJsq % 4 == 0)
{
string format = "{0} 第 {1} / {2} 宝贝已踩 {3} / {4} 秒.";
object[] objArray1 = new object[5];
object[] objArray2 = objArray1;
int index = 0;
now = DateTime.Now;
string str = now.ToString();
objArray2[index] = str;
objArray1[1] = this._curTask.jd;
objArray1[2] = this._curTask.sl;
if ((int)timeSpan.TotalSeconds > this._curTask.jdTime1)
{
this._curTask.startTime = now.ToString();
dateTime = Convert.ToDateTime(this._curTask.startTime);
timeSpan = now.Subtract(dateTime);
}
objArray1[3] = (int)timeSpan.TotalSeconds+1;
objArray1[4] =this._curTask.jdTime1;
object[] objArray3 = objArray1;
this.strLog = string.Format(format, objArray3);
// ISSUE: method pointer
this.BeginInvoke(showdelegate, (object)this.strLog);
}
try
{
if (this._curTask.Stu == "搜索宝贝")
{
int num1 = web.Document.Window.Size.Height;
if (num1 < 3000)
num1 = 3000;
int num2 = num1 / 30;
web.Document.Window.ScrollTo(0, ((int)timeSpan.TotalSeconds+1 )* num2);
}
else
{
int num = web.Document.Window.Size.Height / this._curTask.jdTime1;
web.Document.Window.ScrollTo(0, (int)timeSpan.TotalSeconds * num);
}
}
catch
{
}
}
catch
{
}
}
public void functionSwitch()