Ejemplo n.º 1
0
        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("执行成功!");
        }
Ejemplo n.º 2
0
        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("执行成功!");
        }
Ejemplo n.º 3
0
 private void  ListToText()
 {
     textBox1.Text = unilist.ToString();
 }