💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
``` private void listView1_SelectedIndexChanged_1(object sender, EventArgs e) { //selected item changed if (listView1.SelectedItems.Count != 0) { int num = listView1.Items.IndexOf(listView1.SelectedItems[0]); string file = listView1.Items[num].SubItems[0].Text; if (file != "") { pictureBox2.Load(listView1.SelectedItems[0].SubItems[0].Text); switch (cbBackcolor.Text) { case "默认": pictureBox2.BackColor = Color.Black; break; case "粉红": pictureBox2.BackColor = Color.OrangeRed; break; case "绿色": pictureBox2.BackColor = Color.ForestGreen; break; case "纯黑": pictureBox2.BackColor = Color.Black; break; case "内景": pictureBox2.BackColor = Color.CornflowerBlue; break; case "儿童": pictureBox2.BackColor = Color.Cyan; break; default: pictureBox2.BackColor = Color.Black; break; } } } } ```