Exemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            SqliHelper.UpdateData("table1", "Name", "aaa", "EMAIL='修改@.com'", "CODE='修改'");
            List <string> List = SqliHelper.ReadMultiData("table1", new string[] { "Name", "CODE" }, "Name like 'aaa'");

            if (List.Count > 0)
            {
                textBox1.Text = List[0]; textBox2.Text = List[1]; textBox3.Text = List[2];
            }
        }
Exemplo n.º 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         List <string> List = SqliHelper.ReadMultiData("table1", new string[] { "Name", "CODE" }, "Name like 'aaa'", "CODE like '1234'");
         if (List.Count > 0)
         {
             textBox1.Text = List[0]; textBox2.Text = List[1]; textBox3.Text = List[2];
         }
         SqliHelper.CheckImporlistview(this.listView1, "表2", "");
     }
     catch
     {
     }
 }