/// <summary> /// 卡查询=>查询按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button2_Click(object sender, EventArgs e) { var data = _cos.KeyCx(txtKey1.Text); var datainfo = _cos.Str2KeyList(data); dataGridView1.DataSource = datainfo; }