private void button1_Click(object sender, EventArgs e) { MessageBox.Show("Hello,.NET CF 3.5"); } |
private void button2_Click(object sender, EventArgs e) { listBox1.Items.Clear(); var numbers = new List() { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; var evenNumbers = from p in numbers where (p % 2) == 0 select p; foreach (var number in evenNumbers) listBox1.Items.Add(string.Format("{0} ", number)); } |
private void button3_Click(object sender, EventArgs e) { MessageBox.Show(Environment.Version.ToString()); } |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |