private void SwitchFace4_Tick(object sender, System.EventArgs e) { pictureBox1.Image = Umaru_AI.Properties.Resources._5; SwtichFace1.Interval = 200; SwtichFace1.Start(); SwitchFace4.Stop(); }
private void SwtichFace2_Tick(object sender, System.EventArgs e)//กระพริบตาสลับหน้า { Random r = new Random(); int R = r.Next(1, 3); if (R == 1) { pictureBox1.Image = Umaru_AI.Properties.Resources._5; SwitchFace3.Interval = 500; SwitchFace3.Start(); } else if (R == 3) { SwtichFace1.Interval = 500; SwtichFace1.Start(); } else { pictureBox1.Image = Umaru_AI.Properties.Resources._6; //แสดงอารมหน้าอื่นๆเพ่มเตม. . . .++ /*if (R==?) * { * //แสดงอารมใบหน้าอื่นๆ * } * else*/ } }
private void SwitchFace_Tick(object sender, System.EventArgs e)// { if (textBox2.Enabled == true) { pictureBox1.Image = Umaru_AI.Properties.Resources._3; SwtichFace1.Interval = 500; SwitchFace.Interval = 1200; SwtichFace1.Start(); } }