Beispiel #1
0
        public void Handle(ModifyUserNotification notification)
        {
            treeView.Nodes[0].Nodes.Clear();
            List <Person> Tutors = DataBase.getTutors();

            foreach (Person tutor in Tutors)
            {
                this.treeView.Nodes[0].Nodes.Add(tutor.ToString());
            }
            treeView.Nodes[1].Nodes.Clear();

            List <Person> Students = DataBase.getStudents();

            foreach (Person student in Students)
            {
                this.treeView.Nodes[1].Nodes.Add(student.ToString());
            }
        }
Beispiel #2
0
 public void Handle(ModifyUserNotification notification)
 {
     this.dataGrid.Rows.Clear();
     this.dataGrid.Rows.Add(notification.getPerson().getFirstName(),
                            notification.getPerson().getLastName(), notification.getPerson().getAddres());
 }