private void SwitchFace3_Tick(object sender, System.EventArgs e)// { pictureBox1.Image = Umaru_AI.Properties.Resources._2; SwitchFace4.Interval = 200; SwitchFace4.Start(); SwitchFace3.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*/ } }