Beispiel #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");
            }
        }
Beispiel #2
0
        private void btnAccion_Click(object sender, EventArgs e)
        {
            TestCl oTestCl = new TestCl();

            oTestCl.Test(Convert.ToInt32(txtSno.Text), Convert.ToInt32(txtEid.Text), txtDate1.Value, txtDate2.Value,
                         Convert.ToInt32(txtSid.Text), chkAcepto.Checked);
            if (oTestCl.IsError)
            {
                MessageBox.Show("Error", "Error");
            }
        }
Beispiel #3
0
        public void CharArrayTest()
        {
            QuicklySerializer ser = new QuicklySerializer();
            var m1    = TestCl.Create();
            var bytes = ser.FastWriteBytes(m1);
            var m2    = ser.FastReadBytes <TestCl>(bytes);

            for (int i = 0; i < m1.SingleArrayOfChars.Length; i++)
            {
                Assert.Equal(m1.SingleArrayOfChars[i], m2.SingleArrayOfChars[i]);
            }
        }
Beispiel #4
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];
        }