private void btnRefrescar_Click(object sender, EventArgs e) { TestCl oTestCl = new TestCl(); dtgInfo.DataSource = oTestCl.GetInfo().Tables[0]; if (oTestCl.IsError) { MessageBox.Show("Error", "Error"); } }
private void btneliminar_Click(object sender, EventArgs e) { TestCl oTestCl = new TestCl(); oTestCl.Eliminar_Test(Convert.ToInt32(txtSno.Text)); if (oTestCl.IsError) { MessageBox.Show("Error", "Error"); } dtgInfo.DataSource = oTestCl.GetInfo().Tables[0]; }