Exemplo n.º 1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1();
            List <StudentsAffairsSystemServer.InformationStudent> obj1 = new List <StudentsAffairsSystemServer.InformationStudent>();

            obj1 = StudentsAffairsSystem.SpecificStudentsProfile().ToList();
            foreach (StudentsAffairsSystemServer.InformationStudent obj in obj1)
            {
                textBox1.Text = obj.UserName;
                textBox3.Text = obj.ContactNumber;
                textBox7.Text = obj.Department;
                textBox2.Text = obj.EmailId;
                textBox4.Text = obj.RegisterationNumber;
                textBox6.Text = obj.Section;
                textBox5.Text = obj.StudentCategory;
            }
        }