protected void MySubmitButton_Click(object sender, EventArgs e)
        {
            MyWCFServiceClient srv = new MyWCFServiceClient();

            //Student stu = srv.StudentSelectByID(1);

            //StudentList students = srv.StudentSelectAll();

            //String str = "";

            //students.ForEach(s => str += s.FirstName + " ");

            //MyTextBox.Text = str;


            Lecturer l = srv.LecturerLogin(eMail.Text, password.Text);

            Session["lecturer"] = l;

            messageLbl.Text = l.FirstName + " " + l.LastName + " " + l.City.Name;
        }
Esempio n. 2
0
        public MainWindow()
        {
            InitializeComponent();

            MyWCFServiceClient srv = new MyWCFServiceClient();
            Student            stu = srv.StudentSelectByID(1);

            StudentList students = srv.StudentSelectAll();

            String str = "";

            students.ForEach(s => str += s.FirstName + " ");


            MessageBox.Show(str);
            //MessageBox.Show(stu == null ? "is null !!!" : stu.City.Name + " " + stu.FirstName);


            //string s = srv.GetData(3);
            //MessageBox.Show(s);
            //System.Diagnostics.Debug.WriteLine("ABC:" + stu.FirstName);
            //MessageBox.Show(stu == null?"null":stu.FirstName);
        }