private void pictureBox6_Click(object sender, EventArgs e) { if (play) { play = false; pictureBox6.BackgroundImage = imageList1.Images[2]; //butClike = !butClike; this.pictureBox1.Visible = true; if (Program.isBeyondDate == true) { Program.ProClose = true; } else { Program.ProClose = false; } BeginEvn(); webSpiderTimer.Enabled = true; weiboSpiderTimer.Enabled = true; //reFreshWeibo(); qwei = new util.QQWeibo(2 * 60 * 1000); qwei.Start(); swei = new util.SinaWeibo(2 * 60 * 1000); swei.Start(); } else { play = true; pictureBox6.BackgroundImage = imageList1.Images[0]; //butClike = !butClike; qwei.Stop(); swei.Stop(); webSpiderTimer.Enabled = false; weiboSpiderTimer.Enabled = false; this.pictureBox1.Visible = false; Program.ProClose = true; } }
private void pictureBox6_Click(object sender, EventArgs e) { if (play) { play = false; pictureBox6.BackgroundImage = imageList1.Images[2]; butClike = !butClike; //DataBaseServer.SQLitecommand cmd = new SQLitecommand(); //string sql = "SELECT * FROM partword"; //dtParts = cmd.GetTabel(sql); this.pictureBox1.Visible = true; if (Program.isBeyondDate == true) { Program.ProClose = true; } else { Program.ProClose = false; } this.timerMAIN.Enabled = true; BeginEvn(); reFreshWeibo(); qwei = new util.QQWeibo(2 * 60 * 1000); qwei.Start(); swei = new util.SinaWeibo(2 * 60 * 1000); swei.Start(); } else { play = true; pictureBox6.BackgroundImage = imageList1.Images[0]; butClike = !butClike; qwei.Stop(); swei.Stop(); this.pictureBox1.Visible = false; Program.ProClose = true; but = false; } }