示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Labsc dclb = new Labsc();

            {
                dclb.Labcode = txtLabcode.Text;
            };

            Service2Client service = new Service2Client();

            if (service.DeleteComLabs(dclb) == 1)
            {
                MessageBox.Show("Successfully Deleted");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }