Esempio n. 1
0
 public Form1()
 {
     InitializeComponent();
     smSubject = new SMSubject();
     mainUser  = new UserObserver(listMainPage, smSubject);
     friend1   = new FriendObserver(listFriend1, smSubject);
     friend2   = new FriendObserver(listFriend2, smSubject);
     friend3   = new FriendObserver(listFriend3, smSubject);
     friend4   = new FriendObserver(listFriend4, smSubject);
 }
Esempio n. 2
0
 public Form1()
 {
     InitializeComponent();
     smSubject = new SMSubject();
     mainUser = new UserObserver(listMainPage, smSubject);
     friend1 = new FriendObserver(listFriend1, smSubject);
     friend2 = new FriendObserver(listFriend2, smSubject);
     friend3 = new FriendObserver(listFriend3, smSubject);
     friend4 = new FriendObserver(listFriend4, smSubject);
 }