예제 #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            Labsc lbdc = new Labsc();

            lbdc.Labcode = txtLabcode.Text;
            lbdc.Numstu  = txtLabnumstu.Text;

            Service2Client service = new Service2Client();

            if (service.AddLabs(lbdc) == 1)
            {
                MessageBox.Show("Successfully Saved");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }