private void reTrimToolStripMenuItem_Click(object sender, EventArgs e) { Action <int> proc = delegate(int i) { string pppart = comboBox1.Items[i].ToString(); var templist = new NCcodeList(dbinfo); templist.ImportFromString(DbHelperSQL.getlist("select 程序Program from " + productnametrim + " where UUID='" + pppart + "'").First()); CheckAndShow(templist, false, true); unilist.AddRangeToWrongList(templist.ShowWrongList); DbHelperSQL.ExecuteSql("Update " + productnametrim + " set 程序Program='" + templist.ToString() + "' where uuid='" + pppart + "'"); }; CheckAll(proc); MessageBox.Show("执行成功!"); }
private void reTrimToolStripMenuItem_Click(object sender, EventArgs e) { Action<int> proc = delegate (int i) { string pppart = comboBox1.Items[i].ToString(); var templist = new NCcodeList(dbinfo); templist.ImportFromString(DbHelperSQL.getlist("select 程序Program from " + productnametrim + " where UUID='" + pppart + "'").First()); CheckAndShow(templist, false, true); unilist.AddRangeToWrongList(templist.ShowWrongList); DbHelperSQL.ExecuteSql("Update " + productnametrim + " set 程序Program='" + templist.ToString() + "' where uuid='" + pppart + "'"); }; CheckAll(proc); MessageBox.Show("执行成功!"); }
private void ListToText() { textBox1.Text = unilist.ToString(); }