示例#1
0
文件: mainForm.cs 项目: summy00/COM
 private void btnUpdate_Click(object sender, System.EventArgs e)
 {
     try
     {
         ci.AddCar(txtMake.Text, txtColor.Text, Int32.Parse(txtID.Text));
         UpdateGrid();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
示例#2
0
 private void btnUpdate_Click(object sender, System.EventArgs e)
 {
     ci.AddCar(txtMake.Text, txtColor.Text, Int32.Parse(txtID.Text));
     UpdateGrid();
 }