Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text.Length != 0)
     {
         SqlClass.NonQuery("insert into groups(gname) values('" + textBox1.Text + "')");
         con.FreshContacts();
     }
 }
Exemplo n.º 2
0
 private void  除联系人ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SqlClass.NonQuery("delete from contacts where id='" + id + "'");
     FreshContacts();
 }
Exemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     SqlClass.NonQuery("update groups set gname='" + textBox1.Text + "' where gid='" + con.gid + "'");
     con.FreshContacts();
 }
Exemplo n.º 4
0
 private void button1_Click(object sender, EventArgs e)
 {
     SqlClass.NonQuery("insert into contacts(name,num,gid) values('" + textBox1.Text + "','" + textBox2.Text + "'," + con.gid + ")");
     con.FreshContacts();
 }
Exemplo n.º 5
0
 private void button1_Click(object sender, EventArgs e)
 {
     //   MessageBox.Show(con.id + " " + ls[comboBox1.SelectedIndex].Key);
     SqlClass.NonQuery("update contacts set name='" + textBox1.Text + "',num='" + textBox2.Text + "' ,gid=" + ls[comboBox1.SelectedIndex].Key + " where id=" + con.id);
     con.FreshContacts();
 }