Example #1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            Modulesc dcm = new Modulesc();

            {
                dcm.Modcode = txtModcode.Text;
            };

            Service2Client service = new Service2Client();

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