private void button2_Click(object sender, EventArgs e)
        {
            localhost.Service1 service = new localhost.Service1();
            bool isValidsub;
            bool isValidsubject;

            service.isTeacherValidSubject(comboBox1.Text, out isValidsubject, out isValidsub);
            BindingSource source = new BindingSource();

            if (isValidsubject)
            {
                source.DataSource = service.TeacherViewReport(comboBox1.Text);
                service.TeacherViewReport(comboBox1.Text);
                dataGridView1.DataSource = source;
            }
            else
            {
                MessageBox.Show("Invalid Subject");
            }
        }