コード例 #1
0
        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");
            }
        }
コード例 #2
0
        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];
        }