private void button2_Click(object sender, EventArgs e)
        {
            string s;

            ManageCourseWS.ManageCoursesWebService mcws = new ManageCourseWS.ManageCoursesWebService();
            s = mcws.Delete_Course_BLL(course.Text);

            MessageBox.Show(s, "Report");

            course.Text = null;
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (cmbType.Text == "" || txtCourse.Text == "")
            {
                MessageBox.Show("All Fields must be Filled. Enter Again!", "Error");
            }
            else
            {
                string s;
                ManageCourseWS.ManageCoursesWebService mcws = new ManageCourseWS.ManageCoursesWebService();
                s = mcws.Add_Course_BLL(txtCourse.Text, cmbType.Text);

                MessageBox.Show(s, "Report");

                txtCourse.Text = null;
                cmbType.Text   = null;
            }
        }
 private void btnAssignToClass_Click(object sender, EventArgs e)
 {
     if (cmbClass.Text == "" || course.Text == "")
     {
         MessageBox.Show("No Fields Should be Empty", "Required Filed Empty");
     }
     else
     {
         string s;
         ManageCourseWS.ManageCoursesWebService mcws = new ManageCourseWS.ManageCoursesWebService();
         s = mcws.Assign_To_Class_BLL(course.Text, cmbClass.Text);
         if (s == "true")
         {
             MessageBox.Show("Subject Assigned to the class successfully", "Success Report");
         }
         else
         {
             MessageBox.Show("Subject could not be Assigned to the class", "Failure Report");
         }
         course.Text   = null;
         cmbClass.Text = null;
     }
 }