代码拉取完成,页面将自动刷新
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace AtfutureCodeMachine
{
public partial class FormValidate : Form
{
public FormValidate(string val,string yz)
{
InitializeComponent();
string[] arr = yz.Split(',');
this.clb_yz.Items.Clear();
foreach (string s in arr)
{
this.clb_yz.Items.Add(s);
}
for(int i=0;i<this.clb_yz.Items.Count;i++)
{
if (("," + val + ",").IndexOf("," + this.clb_yz.Items[i] + ",") != -1)
{
this.clb_yz.SetItemChecked(i, true);
}
}
}
/// <summary>
/// 返回值
/// </summary>
public string Value = "";
private void btnSelect_Click(object sender, EventArgs e)
{
for (int i = 0; i < this.clb_yz.Items.Count; i++)
{
if(this.clb_yz.GetItemChecked(i))
{
Value += "," + this.clb_yz.Items[i];
}
}
if (Value != "") Value = Value.Substring(1);
this.Close();
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。